* [pushed] gdb: run black to format some Python files
@ 2022-03-18 15:40 Simon Marchi
2022-03-18 16:47 ` Tom Tromey
0 siblings, 1 reply; 2+ messages in thread
From: Simon Marchi @ 2022-03-18 15:40 UTC (permalink / raw)
To: gdb-patches; +Cc: Simon Marchi
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [pushed] gdb: run black to format some Python files
2022-03-18 15:40 [pushed] gdb: run black to format some Python files Simon Marchi
@ 2022-03-18 16:47 ` Tom Tromey
0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2022-03-18 16:47 UTC (permalink / raw)
To: Simon Marchi via Gdb-patches; +Cc: Simon Marchi
>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:
Simon> Seems like some leftovers from previous commits.
I may have used the wrong version of black.
Though looking at the changes it's possible I forgot to run it instead.
Tom
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-18 16:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-18 15:40 [pushed] gdb: run black to format some Python files Simon Marchi
2022-03-18 16:47 ` Tom Tromey
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).