[binutils-gdb] gdb: run black to format some Python files
Simon Marchi
simark@sourceware.org
Fri Mar 18 15:40:46 GMT 2022
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f0cf07f341f565978228c9a2cfa73d2a9f3001c3
commit f0cf07f341f565978228c9a2cfa73d2a9f3001c3
Author: Simon Marchi <simon.marchi@efficios.com>
Date: Fri Mar 18 11:38:22 2022 -0400
gdb: run black to format some Python files
Seems like some leftovers from previous commits.
Change-Id: I7155ccdf7a4fef83bcb3d60320252c3628efdb83
Diff:
---
gdb/gdbarch.py | 1 +
gdb/gdbcopyright.py | 5 +++--
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 -*- */
More information about the Gdb-cvs
mailing list