public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed] Run 'black' on printing.py
@ 2023-09-20 16:43 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2023-09-20 16:43 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

The buildbot pointed out that I neglected to re-run 'black' after
making some changes.  This patch fixes the oversight.
---
 gdb/python/lib/gdb/printing.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdb/python/lib/gdb/printing.py b/gdb/python/lib/gdb/printing.py
index 223a69929d2..c9af56648c7 100644
--- a/gdb/python/lib/gdb/printing.py
+++ b/gdb/python/lib/gdb/printing.py
@@ -368,7 +368,11 @@ def make_visualizer(value):
             result = gdb.printing.NoOpArrayPrinter(ty, value)
         elif ty.code in (gdb.TYPE_CODE_STRUCT, gdb.TYPE_CODE_UNION):
             result = gdb.printing.NoOpStructPrinter(ty, value)
-        elif ty.code in (gdb.TYPE_CODE_PTR, gdb.TYPE_CODE_REF, gdb.TYPE_CODE_RVALUE_REF):
+        elif ty.code in (
+            gdb.TYPE_CODE_PTR,
+            gdb.TYPE_CODE_REF,
+            gdb.TYPE_CODE_RVALUE_REF,
+        ):
             result = NoOpPointerReferencePrinter(value)
         else:
             result = gdb.printing.NoOpScalarPrinter(value)
-- 
2.40.1


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

only message in thread, other threads:[~2023-09-20 16:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-20 16:43 [pushed] Run 'black' on 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).