You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
fix UnboundLocalError
This commit is contained in:
@@ -1439,7 +1439,7 @@ class SourceWalker(GenericASTTraversal, object):
|
|||||||
i = n - (len(kwargs)+1)
|
i = n - (len(kwargs)+1)
|
||||||
j = 1 + n - node[n].attr
|
j = 1 + n - node[n].attr
|
||||||
else:
|
else:
|
||||||
start = n-2
|
i = start = n-2
|
||||||
for i in range(start, 0, -1):
|
for i in range(start, 0, -1):
|
||||||
if not node[i].kind in ['expr', 'call', 'LOAD_CLASSNAME']:
|
if not node[i].kind in ['expr', 'call', 'LOAD_CLASSNAME']:
|
||||||
break
|
break
|
||||||
|
Reference in New Issue
Block a user