diff options
author | Yonatan Goldschmidt <yon.goldschmidt@gmail.com> | 2022-11-27 10:39:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-27 10:39:23 (GMT) |
commit | 9c9f085e9a1d1464376ea421e5c96472ca11c3b4 (patch) | |
tree | 5caafea9edf4cb94768d92093851808f7751c1a2 /Lib/inspect.py | |
parent | 65629399bcfe2a6606b8201d190877f7f54e6be5 (diff) | |
download | cpython-9c9f085e9a1d1464376ea421e5c96472ca11c3b4.zip cpython-9c9f085e9a1d1464376ea421e5c96472ca11c3b4.tar.gz cpython-9c9f085e9a1d1464376ea421e5c96472ca11c3b4.tar.bz2 |
Remove unused local variables in inspect.py (#24218)
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r-- | Lib/inspect.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py index d0015aa..311a3f7 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -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 |