[pushed] Run 'black' on printing.py

Message ID 20230920164346.189849-1-tromey@adacore.com
State New
Headers
Series [pushed] Run 'black' on printing.py |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 warning Patch is already merged
linaro-tcwg-bot/tcwg_gdb_build--master-arm warning Patch is already merged
linaro-tcwg-bot/tcwg_gdb_check--master-arm warning Patch is already merged

Commit Message

Tom Tromey Sept. 20, 2023, 4:43 p.m. UTC
  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(-)
  

Patch

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)