More Python 3.4 CALL_FUNCTION_VAR

This commit is contained in:
rocky
2018-03-26 19:40:33 -04:00
parent 3d218c84b0
commit 3500c49daf
3 changed files with 7 additions and 2 deletions

View File

@@ -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())

View File

@@ -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()