gdb: run black to format some Python files

Seems like some leftovers from previous commits.

Change-Id: I7155ccdf7a4fef83bcb3d60320252c3628efdb83
This commit is contained in:
Simon Marchi
2022-03-18 11:38:22 -04:00
parent a747a286b9
commit f0cf07f341
2 changed files with 4 additions and 2 deletions

View File

@ -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("&"):

View File

@ -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 -*- */