diff --git a/test/bytecode_3.4_run/04_call_function.pyc b/test/bytecode_3.4_run/04_call_function.pyc index 96fb939a..b62f3903 100644 Binary files a/test/bytecode_3.4_run/04_call_function.pyc and b/test/bytecode_3.4_run/04_call_function.pyc differ diff --git a/test/simple_source/bug35/04_call_function.py b/test/simple_source/bug35/04_call_function.py index 6355d27e..9242022e 100644 --- a/test/simple_source/bug35/04_call_function.py +++ b/test/simple_source/bug35/04_call_function.py @@ -42,3 +42,8 @@ def __init__(self, cnf={}): cnf['title'], cnf['text'], cnf['bitmap'], cnf['default'], *cnf['strings']) + +# From python 3.4.8 multiprocessing/context.py +def Value(self, fn, typecode_or_type, *args, lock=True): + return fn(typecode_or_type, *args, lock=lock, + ctx=self.get_context()) diff --git a/uncompyle6/semantics/customize.py b/uncompyle6/semantics/customize.py index b0d1a3ea..681461dc 100644 --- a/uncompyle6/semantics/customize.py +++ b/uncompyle6/semantics/customize.py @@ -269,8 +269,8 @@ def customize_for_version(self, is_pypy, version): 0, -2, (1, kwargs+1, ', ')) else: template = ('%c(%C, *%c, %C)', - 0, -2, (1, kwargs+1, ', '), - (kwargs+1, -2, ', ')) + 0, (1, nargs+1, ', '), + -2, (-2-kwargs, -2, ', ')) self.template_engine(template, node) self.prune()