Skip to content

Commit 24d66cc

Browse files
committed
gdb: fix flake-7.2.0 F824 warning
This patch fixes the flake8 warning F824 [1]: | F824 `global gtype_cache` is unused: name is never assigned in scope This patch removes the `global` definition inside the function since, according to [2], it's already considered global. [1]: https://flake8.pycqa.org/en/latest/user/error-codes.html [2]: https://docs.python.org/3/faq/programming.html#what-are-the-rules-for-local-and-global-variables-in-python Reviewed-by: Sergey Bronnikov <[email protected]> Signed-off-by: Sergey Kaplun <[email protected]>
1 parent d6737cb commit 24d66cc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/luajit-gdb.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424

2525
def gtype(typestr):
26-
global gtype_cache
2726
if typestr in gtype_cache:
2827
return gtype_cache[typestr]
2928

0 commit comments

Comments
 (0)