summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-03-18 11:38:22 -0400
committerSimon Marchi <simon.marchi@efficios.com>2022-03-18 11:40:21 -0400
commitf0cf07f341f565978228c9a2cfa73d2a9f3001c3 (patch)
treeea09eba60e3b7d8cb703c63bab03cd190c4fed2b
parenta747a286b9331adfba85a508beddaef47ea1a1c2 (diff)
downloadbinutils-gdb-f0cf07f341f565978228c9a2cfa73d2a9f3001c3.tar.gz
gdb: run black to format some Python files
Seems like some leftovers from previous commits. Change-Id: I7155ccdf7a4fef83bcb3d60320252c3628efdb83
-rwxr-xr-xgdb/gdbarch.py1
-rw-r--r--gdb/gdbcopyright.py5
2 files changed, 4 insertions, 2 deletions
diff --git a/gdb/gdbarch.py b/gdb/gdbarch.py
index c89d19ccbcf..cc96ccd8b56 100755
--- a/gdb/gdbarch.py
+++ b/gdb/gdbarch.py
@@ -25,6 +25,7 @@ import gdbcopyright
# All the components created in gdbarch-components.py.
components = []
+
def join_type_and_name(t, n):
"Combine the type T and the name N into a C declaration."
if t.endswith("*") or t.endswith("&"):
diff --git a/gdb/gdbcopyright.py b/gdb/gdbcopyright.py
index 9526eac4e20..1e38036204d 100644
--- a/gdb/gdbcopyright.py
+++ b/gdb/gdbcopyright.py
@@ -17,11 +17,12 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
def copyright(tool, description):
# Search the tool source itself for the correct copyright years.
- with open(tool, 'r') as f:
+ with open(tool, "r") as f:
for line in f:
- if line.startswith('# Copyright (C) '):
+ if line.startswith("# Copyright (C) "):
dateline = line[1:].strip()
break
return f"""/* *INDENT-OFF* */ /* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */