You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
Start handling Pyton 2.4 bytecodes
This commit is contained in:
@@ -961,8 +961,9 @@ class SourceWalker(GenericASTTraversal, object):
|
||||
n_import_as_cont = n_import_as
|
||||
|
||||
def n_importfrom(self, node):
|
||||
if node[0].pattr > 0:
|
||||
node[2].pattr = '.'*node[0].pattr+node[2].pattr
|
||||
relative_path_index = 0
|
||||
if self.version >= 2.5 and node[relative_path_index].pattr > 0:
|
||||
node[2].pattr = '.'*node[relative_path_index].pattr + node[2].pattr
|
||||
self.default(node)
|
||||
|
||||
n_importstar = n_importfrom
|
||||
|
Reference in New Issue
Block a user