You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
More complete fragment parsing for imports
This commit is contained in:
@@ -105,6 +105,9 @@ TABLE_DIRECT_FRAGMENT = {
|
|||||||
'pass': ( '%|%rpass\n', ),
|
'pass': ( '%|%rpass\n', ),
|
||||||
'raise_stmt0': ( '%|%rraise\n', ),
|
'raise_stmt0': ( '%|%rraise\n', ),
|
||||||
'import': ( '%|import %c%x\n', 2, (2, (0, 1)), ),
|
'import': ( '%|import %c%x\n', 2, (2, (0, 1)), ),
|
||||||
|
'import_cont': ( ', %c%x', (2, 'alias'), (2, (0, 1)), ),
|
||||||
|
'import_from': ( '%|from %[2]{pattr}%x import %c\n',
|
||||||
|
(2, (0, 1)), (3, 'importlist'), ),
|
||||||
'importfrom': ( '%|from %[2]{pattr}%x import %c\n', (2, (0, 1)), 3),
|
'importfrom': ( '%|from %[2]{pattr}%x import %c\n', (2, (0, 1)), 3),
|
||||||
|
|
||||||
# FIXME only in <= 2.4
|
# FIXME only in <= 2.4
|
||||||
|
Reference in New Issue
Block a user