mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2024-11-23 13:09:49 +00:00
Use new xdis...
Sadly there are some regressions that need to be fixed. Deal with later.
This commit is contained in:
parent
204b07c996
commit
f117feb585
@ -138,14 +138,21 @@ class Scanner2(Scanner):
|
||||
if classname:
|
||||
classname = '_' + classname.lstrip('_') + '__'
|
||||
|
||||
free = [ self.unmangle_name(name, classname)
|
||||
if hasattr(co, "co_cellvars"):
|
||||
free = [ self.unmangle_name(name, classname)
|
||||
for name in (co.co_cellvars + co.co_freevars) ]
|
||||
else:
|
||||
free = ()
|
||||
|
||||
names = [ self.unmangle_name(name, classname)
|
||||
for name in co.co_names ]
|
||||
varnames = [ self.unmangle_name(name, classname)
|
||||
for name in co.co_varnames ]
|
||||
else:
|
||||
free = co.co_cellvars + co.co_freevars
|
||||
if hasattr(co, "co_cellvars"):
|
||||
free = co.co_cellvars + co.co_freevars
|
||||
else:
|
||||
free = ()
|
||||
names = co.co_names
|
||||
varnames = co.co_varnames
|
||||
return free, names, varnames
|
||||
|
Loading…
Reference in New Issue
Block a user