]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: fix some flake8 F824 warnings
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 24 Apr 2025 18:48:32 +0000 (14:48 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 24 Apr 2025 19:34:30 +0000 (15:34 -0400)
commit8ecfa4e5f87b823d9e572c13ff3ef7f83de0f0ff
treee1e42c0b311854889a2ead540c0f7a655df18194
parent5363deffcfb1c1825db3a8446d377a0ad56eff70
gdb: fix some flake8 F824 warnings

flake8 7.2.0 appears to have this new warning:

    F824: global name / nonlocal name is unused: name is never assigned in scope

It points out a few places in our code base where "global" is not
necessary, fix them.

Change-Id: Ia6fb08686977559726fefe2a5bb95d8dcb298bb0
Approved-By: Tom Tromey <tom@tromey.com>
12 files changed:
gdb/python/lib/gdb/dap/__init__.py
gdb/python/lib/gdb/dap/breakpoint.py
gdb/python/lib/gdb/dap/events.py
gdb/python/lib/gdb/dap/frames.py
gdb/python/lib/gdb/dap/globalvars.py
gdb/python/lib/gdb/dap/launch.py
gdb/python/lib/gdb/dap/scopes.py
gdb/python/lib/gdb/dap/server.py
gdb/python/lib/gdb/dap/sources.py
gdb/python/lib/gdb/dap/varref.py
gdb/python/lib/gdb/styling.py
gdb/testsuite/analyze-racy-logs.py