public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Simon Marchi <simon.marchi@efficios.com>
To: gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@efficios.com>
Subject: [pushed] gdb: run black to format some Python files
Date: Fri, 18 Mar 2022 11:40:55 -0400	[thread overview]
Message-ID: <20220318154055.20074-1-simon.marchi@efficios.com> (raw)

Seems like some leftovers from previous commits.

Change-Id: I7155ccdf7a4fef83bcb3d60320252c3628efdb83
---
 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 c89d19ccbcfb..cc96ccd8b56f 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 9526eac4e203..1e38036204d1 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 -*- */
-- 
2.26.2


             reply	other threads:[~2022-03-18 15:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-18 15:40 Simon Marchi [this message]
2022-03-18 16:47 ` Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220318154055.20074-1-simon.marchi@efficios.com \
    --to=simon.marchi@efficios.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).