Messed up API compatibility

This commit is contained in:
rocky
2018-03-21 17:38:38 -04:00
parent 6dd0ad0810
commit d41a858f80
2 changed files with 12 additions and 4 deletions

View File

@@ -1735,8 +1735,12 @@ def deparse_code(version, co, out=StringIO(), showasm=False, showast=False,
'ast': showast,
'grammar': showgrammar
}
return code_deparse(co, out, version, debug_opts, code_objects, compile_mode,
is_pypy, walker)
return code_deparse(co, out,
version=version,
debug_opts=debug_opts,
code_objects=code_objects,
compile_mode=compile_mode,
is_pypy=is_pypy, walker=walker)
def code_deparse(co, out=StringIO(), version=None, is_pypy=None,
debug_opts=DEFAULT_DEBUG_OPTS,

View File

@@ -2462,8 +2462,12 @@ def deparse_code(version, co, out=sys.stdout, showasm=None, showast=False,
'ast': showast,
'grammar': showgrammar
}
return code_deparse(co, out, version, debug_opts, code_objects, compile_mode,
is_pypy, walker)
return code_deparse(co, out,
version=version,
debug_opts=debug_opts,
code_objects=code_objects,
compile_mode=compile_mode,
is_pypy=is_pypy, walker=walker)
def code_deparse(co, out=sys.stdout, version=None, debug_opts=DEFAULT_DEBUG_OPTS,
code_objects={}, compile_mode='exec', is_pypy=False, walker=SourceWalker):