mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2024-11-23 05:00:07 +00:00
Fix bug in single param **arg
This commit is contained in:
parent
03743fa9fc
commit
bbaa3e6602
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):
|
||||
pass
|
||||
|
||||
# Had a bug in 2.x where
|
||||
# we weren't picking up **kwds when
|
||||
# it was the sole parameter
|
||||
def funcattrs(**kwds):
|
||||
return
|
||||
|
@ -392,8 +392,7 @@ def make_function2(self, node, is_lambda, nested=1, codeNode=None):
|
||||
if code_has_star_star_arg(code):
|
||||
if argc > 0:
|
||||
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:
|
||||
self.write(": ")
|
||||
|
Loading…
Reference in New Issue
Block a user