public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed] Fix formatting in gdb/printing.py
@ 2023-03-15 19:14 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2023-03-15 19:14 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-15 19:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-15 19:14 [pushed] Fix formatting in gdb/printing.py Tom Tromey

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).