Skip to content

Commit

Permalink
Remove unused local variables in inspect.py (#24218)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jongy authored Nov 27, 2022
1 parent 6562939 commit 9c9f085
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Lib/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ def classify_class_attrs(cls):
if name == '__dict__':
raise Exception("__dict__ is special, don't want the proxy")
get_obj = getattr(cls, name)
except Exception as exc:
except Exception:
pass
else:
homecls = getattr(get_obj, "__objclass__", homecls)
Expand Down Expand Up @@ -1310,7 +1310,6 @@ def getargs(co):
nkwargs = co.co_kwonlyargcount
args = list(names[:nargs])
kwonlyargs = list(names[nargs:nargs+nkwargs])
step = 0

nargs += nkwargs
varargs = None
Expand Down

0 comments on commit 9c9f085

Please sign in to comment.