things for python3

This commit is contained in:
Paul Tagliamonte 2012-12-23 17:45:24 -05:00
parent 6d66e4e9fe
commit 5defd2df9f

View File

@ -232,9 +232,17 @@ class AST27Converter(object):
ret = ast.FunctionDef(
name=str(name),
args=ast.arguments(
args=[ast.Name(id=str(x), ctx=ast.Param()) for x in sig],
args=[
ast.Name(
arg=str(x),
id=str(x),
ctx=ast.Param()
) for x in sig
],
vararg=None,
kwarg=None,
kwonlyargs=[],
kw_defaults=[],
defaults=[]
),
body=body,