Remove unused local variables in inspect.py (#24218)

This commit is contained in:
Yonatan Goldschmidt 2022-11-27 12:39:23 +02:00 committed by GitHub
parent 65629399bc
commit 9c9f085e9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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)
@ -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