aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-03-15 13:14:14 -0600
committerTom Tromey <tromey@adacore.com>2023-03-15 13:14:14 -0600
commit06e8a3a98abc2ad89ba1cc584274947c23d2a2b9 (patch)
treecd28e6056961ddde6d758918333d9a11467cda63 /gdb
parenta8ea150efb9e5a91b05b810afd3876a29ff9790c (diff)
downloadfsf-binutils-gdb-06e8a3a98abc2ad89ba1cc584274947c23d2a2b9.zip
fsf-binutils-gdb-06e8a3a98abc2ad89ba1cc584274947c23d2a2b9.tar.gz
fsf-binutils-gdb-06e8a3a98abc2ad89ba1cc584274947c23d2a2b9.tar.bz2
Fix formatting in gdb/printing.py
According to black 23, gdb/printing.py was mis-formatted. This patch fixes it.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/python/lib/gdb/printing.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/python/lib/gdb/printing.py b/gdb/python/lib/gdb/printing.py
index 5aca2bd..ab62ef3 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