From: Simon Marchi Date: Fri, 18 Mar 2022 15:38:22 +0000 (-0400) Subject: gdb: run black to format some Python files X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f0cf07f341f565978228c9a2cfa73d2a9f3001c3;p=binutils-gdb.git gdb: run black to format some Python files Seems like some leftovers from previous commits. Change-Id: I7155ccdf7a4fef83bcb3d60320252c3628efdb83 --- 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 . + 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 -*- */