From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from barracuda.ebox.ca (barracuda.ebox.ca [96.127.255.19]) by sourceware.org (Postfix) with ESMTPS id 1D0873888C74 for ; Fri, 18 Mar 2022 15:41:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1D0873888C74 X-ASG-Debug-ID: 1647618056-0c856e06ab868580001-fS2M51 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id ZCrqWC8LCdtN89xu (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 18 Mar 2022 11:40:56 -0400 (EDT) X-Barracuda-Envelope-From: simon.marchi@efficios.com X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from smarchi-efficios.internal.efficios.com (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtp.ebox.ca (Postfix) with ESMTP id 3381C441B21; Fri, 18 Mar 2022 11:40:56 -0400 (EDT) From: Simon Marchi X-Barracuda-RBL-IP: 192.222.180.24 X-Barracuda-Effective-Source-IP: 192-222-180-24.qc.cable.ebox.net[192.222.180.24] X-Barracuda-Apparent-Source-IP: 192.222.180.24 To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [pushed] gdb: run black to format some Python files Date: Fri, 18 Mar 2022 11:40:55 -0400 X-ASG-Orig-Subj: [pushed] gdb: run black to format some Python files Message-Id: <20220318154055.20074-1-simon.marchi@efficios.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Barracuda-Connect: smtp.ebox.ca[96.127.255.82] X-Barracuda-Start-Time: 1647618056 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://96.127.255.19:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at ebox.ca X-Barracuda-Scan-Msg-Size: 1422 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=8.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.96736 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Status: No, score=-3498.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_NONE, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2022 15:41:16 -0000 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 . + 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