[gdb/obvious]: fix python formatting for test gdb.python/py-typeprint.py
authorBruno Larsen <blarsen@redhat.com>
Mon, 13 Mar 2023 15:34:41 +0000 (16:34 +0100)
committerBruno Larsen <blarsen@redhat.com>
Mon, 13 Mar 2023 15:34:41 +0000 (16:34 +0100)
python black formatter was complaining about the formatting of
gdb.python/py-typeprint.py, so this commit corrects it.

gdb/testsuite/gdb.python/py-typeprint.py

index aac42a1a99a69b96144269c5eb86c973a94a73a6..899650b45bd54df21e4ebfdbc5a2d989d9da98ab 100644 (file)
@@ -15,6 +15,7 @@
 
 import gdb
 
+
 class StringRecognizer(object):
     def __init__(self):
         self.enabled = True
@@ -36,22 +37,26 @@ class StringTypePrinter(object):
 
 gdb.type_printers.append(StringTypePrinter())
 
+
 class OtherRecognizer(object):
     def __init__(self):
         self.enabled = True
 
     def recognize(self, type_obj):
-        if type_obj.tag == 'Other':
-            return 'Another'
+        if type_obj.tag == "Other":
+            return "Another"
         return None
 
+
 class OtherTypePrinter(object):
     def __init__(self):
-        self.name = 'other'
+        self.name = "other"
         self.enabled = True
 
     def instantiate(self):
         return OtherRecognizer()
 
+
 import gdb.types
+
 gdb.types.register_type_printer(gdb.objfiles()[0], OtherTypePrinter())