From b4ba4087df152e184c5ead7e99965dec39717a3f Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Mon, 1 Apr 2013 18:41:55 -0500 Subject: [PATCH] Minor stylistic change to compiler.py --- hy/compiler.py | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/hy/compiler.py b/hy/compiler.py index 89bfb08..c89340b 100644 --- a/hy/compiler.py +++ b/hy/compiler.py @@ -528,23 +528,26 @@ class HyASTCompiler(object): name = "_hy_anon_fn_%d" % (self.anon_fn_count) sig = expression.pop(0) - ret = ast.FunctionDef(name=name, - lineno=expression.start_line, - col_offset=expression.start_column, - args=ast.arguments(args=[ - ast.Name(arg=str(x), id=str(x), - ctx=ast.Param(), - lineno=x.start_line, - col_offset=x.start_column) - for x in sig], - vararg=None, - kwarg=None, - kwonlyargs=[], - kw_defaults=[], - defaults=[]), - body=self._code_branch([ - self.compile(x) for x in expression]), - decorator_list=[]) + ret = ast.FunctionDef( + name=name, + lineno=expression.start_line, + col_offset=expression.start_column, + args=ast.arguments( + args=[ + ast.Name( + arg=str(x), id=str(x), + ctx=ast.Param(), + lineno=x.start_line, + col_offset=x.start_column) + for x in sig], + vararg=None, + kwarg=None, + kwonlyargs=[], + kw_defaults=[], + defaults=[]), + body=self._code_branch([ + self.compile(x) for x in expression]), + decorator_list=[]) self.returnable = ret_status return ret