mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
gdb: run black to format some Python files
Seems like some leftovers from previous commits. Change-Id: I7155ccdf7a4fef83bcb3d60320252c3628efdb83
This commit is contained in:
@ -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("&"):
|
||||
|
@ -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 -*- */
|
||||
|
Reference in New Issue
Block a user