You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Merge branch 'master' into python-2.4
This commit is contained in:
BIN
test/bytecode_2.1/02_def.pyc
Normal file
BIN
test/bytecode_2.1/02_def.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_2.2/02_def.pyc
Normal file
BIN
test/bytecode_2.2/02_def.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
test/bytecode_2.7/02_def.pyc
Normal file
BIN
test/bytecode_2.7/02_def.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -13,3 +13,9 @@ def x3(a, b, c=5):
|
|||||||
|
|
||||||
def x4(a, b=5, **c):
|
def x4(a, b=5, **c):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
# Had a bug in 2.x where
|
||||||
|
# we weren't picking up **kwds when
|
||||||
|
# it was the sole parameter
|
||||||
|
def funcattrs(**kwds):
|
||||||
|
return
|
||||||
|
@@ -39,7 +39,7 @@ class Python26Parser(Python2Parser):
|
|||||||
except_handler
|
except_handler
|
||||||
|
|
||||||
tryelsestmt ::= SETUP_EXCEPT suite_stmts_opt POP_BLOCK
|
tryelsestmt ::= SETUP_EXCEPT suite_stmts_opt POP_BLOCK
|
||||||
except_handler else_suite COME_FROM
|
except_handler else_suite come_froms
|
||||||
|
|
||||||
_ifstmts_jump ::= c_stmts_opt JUMP_FORWARD COME_FROM POP_TOP
|
_ifstmts_jump ::= c_stmts_opt JUMP_FORWARD COME_FROM POP_TOP
|
||||||
|
|
||||||
|
@@ -390,8 +390,7 @@ def make_function2(self, node, is_lambda, nested=1, codeNode=None):
|
|||||||
if code_has_star_star_arg(code):
|
if code_has_star_star_arg(code):
|
||||||
if argc > 0:
|
if argc > 0:
|
||||||
self.write(', ')
|
self.write(', ')
|
||||||
if argc + kw_pairs > 0:
|
self.write('**%s' % code.co_varnames[argc + kw_pairs])
|
||||||
self.write('**%s' % code.co_varnames[argc + kw_pairs])
|
|
||||||
|
|
||||||
if is_lambda:
|
if is_lambda:
|
||||||
self.write(": ")
|
self.write(": ")
|
||||||
|
Reference in New Issue
Block a user