You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Merge branch 'master' into python-2.4
This commit is contained in:
BIN
test/bytecode_3.5/04_call_function.pyc
Normal file
BIN
test/bytecode_3.5/04_call_function.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
test/bytecode_3.6/04_call_function.pyc
Normal file
BIN
test/bytecode_3.6/04_call_function.pyc
Normal file
Binary file not shown.
@@ -157,8 +157,8 @@ class Python36Parser(Python35Parser):
|
|||||||
elif opname == 'CALL_FUNCTION_EX':
|
elif opname == 'CALL_FUNCTION_EX':
|
||||||
self.addRule("""
|
self.addRule("""
|
||||||
expr ::= call_ex
|
expr ::= call_ex
|
||||||
unpack_list ::= list
|
starred ::= expr
|
||||||
call_ex ::= expr unpack_list CALL_FUNCTION_EX
|
call_ex ::= expr starred CALL_FUNCTION_EX
|
||||||
""", nop_func)
|
""", nop_func)
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
@@ -533,8 +533,9 @@ class SourceWalker(GenericASTTraversal, object):
|
|||||||
'fstring_single': ( "f'{%c%{conversion}}'", 0),
|
'fstring_single': ( "f'{%c%{conversion}}'", 0),
|
||||||
'fstring_multi': ( "f'%c'", 0),
|
'fstring_multi': ( "f'%c'", 0),
|
||||||
'func_args36': ( "%c(**", 0),
|
'func_args36': ( "%c(**", 0),
|
||||||
'try_except36': ( '%|try:\n%+%c%-%c\n\n', 1, 2 ),
|
'try_except36': ( '%|try:\n%+%c%-%c\n\n', 1, 2 ),
|
||||||
'unpack_list': ( '*%c', (0, 'list') ),
|
'unpack_list': ( '*%c', (0, 'list') ),
|
||||||
|
'starred': ( '*%c', (0, 'expr') ),
|
||||||
'call_ex' : (
|
'call_ex' : (
|
||||||
'%c(%c)',
|
'%c(%c)',
|
||||||
(0, 'expr'), 1),
|
(0, 'expr'), 1),
|
||||||
|
Reference in New Issue
Block a user