aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbcopyright.py
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 /gdb/gdbcopyright.py
parenta747a286b9331adfba85a508beddaef47ea1a1c2 (diff)
downloadbinutils-f0cf07f341f565978228c9a2cfa73d2a9f3001c3.zip
binutils-f0cf07f341f565978228c9a2cfa73d2a9f3001c3.tar.gz
binutils-f0cf07f341f565978228c9a2cfa73d2a9f3001c3.tar.bz2
gdb: run black to format some Python files
Seems like some leftovers from previous commits. Change-Id: I7155ccdf7a4fef83bcb3d60320252c3628efdb83
Diffstat (limited to 'gdb/gdbcopyright.py')
-rw-r--r--gdb/gdbcopyright.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/gdbcopyright.py b/gdb/gdbcopyright.py
index 9526eac..1e38036 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 -*- */