From d15aa31a32ce47e993ec4a2ee1ece17711579a3d Mon Sep 17 00:00:00 2001 From: Paul Tagliamonte Date: Sat, 8 Jun 2013 20:10:27 -0400 Subject: [PATCH] style fixes --- hy/macros.py | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/hy/macros.py b/hy/macros.py index 5149cc7..d3530fd 100644 --- a/hy/macros.py +++ b/hy/macros.py @@ -57,20 +57,25 @@ def _wrap_value(x): else: return wrapper(x) -_wrappers = {int: HyInteger, - bool: lambda x: HySymbol("True") if x else HySymbol("False"), - float: HyFloat, - complex: HyComplex, - str_type: HyString, - dict: lambda d: HyDict(_wrap_value(x) for x in sum(d.items(), ())), - list: lambda l: HyList(_wrap_value(x) for x in l)} +_wrappers = { + int: HyInteger, + bool: lambda x: HySymbol("True") if x else HySymbol("False"), + float: HyFloat, + complex: HyComplex, + str_type: HyString, + dict: lambda d: HyDict(_wrap_value(x) for x in sum(d.items(), ())), + list: lambda l: HyList(_wrap_value(x) for x in l) +} + def process(tree, module_name): if isinstance(tree, HyExpression): fn = tree[0] if fn in ("quote", "quasiquote"): return tree - ntree = HyExpression([fn] + [process(x, module_name) for x in tree[1:]]) + ntree = HyExpression( + [fn] + [process(x, module_name) for x in tree[1:]] + ) ntree.replace(tree) if isinstance(fn, HyString):