From 5defd2df9f1fdd51f18a00e30386b9c2bb1c48e6 Mon Sep 17 00:00:00 2001 From: Paul Tagliamonte Date: Sun, 23 Dec 2012 17:45:24 -0500 Subject: [PATCH] things for python3 --- hy/compiler/ast27.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hy/compiler/ast27.py b/hy/compiler/ast27.py index 11ca177..c54bebf 100644 --- a/hy/compiler/ast27.py +++ b/hy/compiler/ast27.py @@ -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,