[binutils-gdb] Run 'black' on printing.py

Tom Tromey tromey@sourceware.org
Wed Sep 20 16:44:01 GMT 2023


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4abf53c99115dad84720be64432ab4bd933b9df7

commit 4abf53c99115dad84720be64432ab4bd933b9df7
Author: Tom Tromey <tromey@adacore.com>
Date:   Wed Sep 20 10:43:04 2023 -0600

    Run 'black' on printing.py
    
    The buildbot pointed out that I neglected to re-run 'black' after
    making some changes.  This patch fixes the oversight.

Diff:
---
 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)


More information about the Gdb-cvs mailing list