You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
All Python 2.7 lib files decompile
This commit is contained in:
@@ -1077,6 +1077,14 @@ class SourceWalker(GenericASTTraversal, object):
|
||||
build_list = buildclass[1][0]
|
||||
subclass = buildclass[-3][0].attr
|
||||
currentclass = buildclass[0].pattr
|
||||
if hasattr(buildclass[-3][0], 'pattr'):
|
||||
subclass = buildclass[-3][0].attr
|
||||
currentclass = buildclass[0].pattr
|
||||
elif hasattr(node[0][0], 'pattr'):
|
||||
currentclass = node[0][0].pattr
|
||||
subclass = buildclass[-3][1].attr
|
||||
else:
|
||||
raise 'Internal Error n_classdef: cannot find class name'
|
||||
|
||||
self.write('\n\n')
|
||||
self.currentclass = str(currentclass)
|
||||
|
Reference in New Issue
Block a user