Reformat Python code with ruff

This commit is contained in:
Jakub Beránek
2024-12-04 23:02:25 +01:00
parent 0b737a163e
commit 536516f949
25 changed files with 1540 additions and 943 deletions

View File

@@ -1,5 +1,6 @@
import gdb
class LinePrinter:
"Print a Line"
@@ -11,6 +12,7 @@ class LinePrinter:
def to_string(self):
return "({}, {})".format(self.a, self.b)
def lookup(val):
lookup_tag = val.type.tag
if lookup_tag is None:
@@ -20,4 +22,5 @@ def lookup(val):
return None
gdb.current_objfile().pretty_printers.append(lookup)