nxgdb: fix style issue
Fix style issue reported after upgrading flake8 to 7.2.0
1 file would be left unchanged.
/home/nuttx/tools/pynuttx/nxgdb/utils.py:237:5: F824 is unused: name is never assigned in scope
global g_type_cache
^
/home/nuttx/tools/pynuttx/nxgdb/utils.py:294:5: F824 is unused: name is never assigned in scope
global long_type
^
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
This commit is contained in:
parent
341292064d
commit
28b2e01c22
1 changed files with 0 additions and 3 deletions
|
|
@ -227,8 +227,6 @@ class Backtrace:
|
||||||
|
|
||||||
def lookup_type(name, block=None) -> gdb.Type:
|
def lookup_type(name, block=None) -> gdb.Type:
|
||||||
"""Return the type object of a type name"""
|
"""Return the type object of a type name"""
|
||||||
global g_type_cache
|
|
||||||
|
|
||||||
key = (name, block)
|
key = (name, block)
|
||||||
if key not in g_type_cache:
|
if key not in g_type_cache:
|
||||||
try:
|
try:
|
||||||
|
|
@ -287,7 +285,6 @@ long_type = lookup_type("long")
|
||||||
|
|
||||||
def get_long_type():
|
def get_long_type():
|
||||||
"""Return the cached long type object"""
|
"""Return the cached long type object"""
|
||||||
global long_type
|
|
||||||
return long_type
|
return long_type
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue