public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Bruno Larsen <blarsen@redhat.com>
To: gdb-patches@sourceware.org
Cc: Bruno Larsen <blarsen@redhat.com>
Subject: [OBV/PATCH] [gdb/obvious]: fix python formatting for test gdb.python/py-typeprint.py
Date: Mon, 13 Mar 2023 16:41:39 +0100	[thread overview]
Message-ID: <20230313154138.123200-1-blarsen@redhat.com> (raw)

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 | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/gdb/testsuite/gdb.python/py-typeprint.py b/gdb/testsuite/gdb.python/py-typeprint.py
index aac42a1a99a..899650b45bd 100644
--- a/gdb/testsuite/gdb.python/py-typeprint.py
+++ b/gdb/testsuite/gdb.python/py-typeprint.py
@@ -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())
-- 
2.39.2


                 reply	other threads:[~2023-03-13 15:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230313154138.123200-1-blarsen@redhat.com \
    --to=blarsen@redhat.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).