You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
Add Python 2.4 importmultiple rule
This commit is contained in:
@@ -286,6 +286,10 @@ class SourceWalker(GenericASTTraversal, object):
|
||||
})
|
||||
|
||||
if version <= 2.4:
|
||||
TABLE_DIRECT.update({
|
||||
'importmultiple': ( '%|import %c%c\n', 2, 3),
|
||||
'import_cont' : ( ', %c', 2),
|
||||
})
|
||||
if version == 2.3:
|
||||
TABLE_DIRECT.update({
|
||||
'if1_stmt': ( '%|if 1\n%+%c%-', 5 )
|
||||
|
@@ -8,7 +8,8 @@ byte-code verification
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import dis, operator
|
||||
import operator
|
||||
import xdis.std as dis
|
||||
|
||||
import uncompyle6
|
||||
import uncompyle6.scanner as scanner
|
||||
|
Reference in New Issue
Block a user