gdb: run black to format some Python files
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 18 Mar 2022 15:38:22 +0000 (11:38 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 18 Mar 2022 15:40:21 +0000 (11:40 -0400)
Seems like some leftovers from previous commits.

Change-Id: I7155ccdf7a4fef83bcb3d60320252c3628efdb83

gdb/gdbarch.py
gdb/gdbcopyright.py

index c89d19ccbcfb5b2f3c50c6f56b23e87210d042c5..cc96ccd8b56fcd69a5c25e05765b3dc0003cb1e1 100755 (executable)
@@ -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("&"):
index 9526eac4e20382ff694f444685a0320ebbb70592..1e38036204d1dc5a5b193647bb66cce9670de2ac 100644 (file)
 # 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 -*- */