This commit is contained in:
Paul R. Tagliamonte 2013-03-04 20:38:24 -05:00
parent 20805fc7b2
commit 3935c87739

View File

@ -67,10 +67,12 @@ class HyASTCompiler(HyCompiler):
ret.append(ast.Return(value=el,
lineno=el.lineno,
col_offset=el.col_offset))
ret += [ast.Expr(value=el,
ret += [
ast.Expr(value=el,
lineno=el.lineno,
col_offset=el.col_offset
) if not isinstance(el, ast.stmt) else el for el in tree]
col_offset=el.col_offset)
if not isinstance(el, ast.stmt) else el for el in tree # NOQA
] # for some stupid reason, flake8 thinks i'm redefining. ^^^^
ret.reverse()
return ret