From: Simon Marchi Date: Wed, 29 Oct 2025 17:49:15 +0000 (-0400) Subject: gdb/testsuite: remove variable with ambiguous name in gdb.server/fileio-packets.py X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12424aca0d47180013249dc549c7b84b09355fb4;p=thirdparty%2Fbinutils-gdb.git gdb/testsuite: remove variable with ambiguous name in gdb.server/fileio-packets.py flake8 complains about: gdb/testsuite/gdb.server/fileio-packets.py:67:9: E741 ambiguous variable name 'l' I think the variable is unnecessary anyway, inline the expression in the format string. Change-Id: Ib294f58e663e79e65de058139a770d572bafb282 Approved-By: Tom Tromey --- diff --git a/gdb/testsuite/gdb.server/fileio-packets.py b/gdb/testsuite/gdb.server/fileio-packets.py index d76cb9a7440..11733868625 100644 --- a/gdb/testsuite/gdb.server/fileio-packets.py +++ b/gdb/testsuite/gdb.server/fileio-packets.py @@ -64,8 +64,7 @@ def decode_stat_reply(buf, byteorder="big"): or buf[3] != ord(";") or len(buf) != 68 ): - l = len(buf) - print(f"decode_stat_reply failed: {buf}\t(length = {l})") + print(f"decode_stat_reply failed: {buf}\t(length = {len(buf)})") return None # Discard the 'F40;' prefix. The rest is the 64 bytes of data to