Skip to content

Commit 9c9f085

Browse files
authored
Remove unused local variables in inspect.py (#24218)
1 parent 6562939 commit 9c9f085

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/inspect.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ def classify_class_attrs(cls):
656656
if name == '__dict__':
657657
raise Exception("__dict__ is special, don't want the proxy")
658658
get_obj = getattr(cls, name)
659-
except Exception as exc:
659+
except Exception:
660660
pass
661661
else:
662662
homecls = getattr(get_obj, "__objclass__", homecls)
@@ -1310,7 +1310,6 @@ def getargs(co):
13101310
nkwargs = co.co_kwonlyargcount
13111311
args = list(names[:nargs])
13121312
kwonlyargs = list(names[nargs:nargs+nkwargs])
1313-
step = 0
13141313

13151314
nargs += nkwargs
13161315
varargs = None

0 commit comments

Comments
 (0)