public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@adacore.com>
To: gdb-patches@sourceware.org
Cc: Tom Tromey <tromey@adacore.com>
Subject: [pushed] Fix formatting in gdb/printing.py
Date: Wed, 15 Mar 2023 13:14:53 -0600	[thread overview]
Message-ID: <20230315191453.2883736-1-tromey@adacore.com> (raw)

According to black 23, gdb/printing.py was mis-formatted.  This patch
fixes it.
---
 gdb/python/lib/gdb/printing.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gdb/python/lib/gdb/printing.py b/gdb/python/lib/gdb/printing.py
index 5aca2bdee43..ab62ef3e45c 100644
--- a/gdb/python/lib/gdb/printing.py
+++ b/gdb/python/lib/gdb/printing.py
@@ -271,6 +271,7 @@ class FlagEnumerationPrinter(PrettyPrinter):
 
 class NoOpScalarPrinter:
     """A no-op pretty printer that wraps a scalar value."""
+
     def __init__(self, value):
         self.value = value
 
@@ -280,6 +281,7 @@ class NoOpScalarPrinter:
 
 class NoOpArrayPrinter:
     """A no-op pretty printer that wraps an array value."""
+
     def __init__(self, value):
         self.value = value
         (low, high) = self.value.type.range()
@@ -302,6 +304,7 @@ class NoOpArrayPrinter:
 
 class NoOpStructPrinter:
     """A no-op pretty printer that wraps a struct or union value."""
+
     def __init__(self, value):
         self.value = value
 
-- 
2.39.1


                 reply	other threads:[~2023-03-15 19:15 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=20230315191453.2883736-1-tromey@adacore.com \
    --to=tromey@adacore.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).