diff --git a/hy/compiler.py b/hy/compiler.py index 5ece32f..8fcb854 100755 --- a/hy/compiler.py +++ b/hy/compiler.py @@ -1088,12 +1088,9 @@ class HyASTCompiler(object): ops = {"not": ast.Not, "~": ast.Invert} operand = self.compile(arg) - - operand += asty.UnaryOp( + return operand + asty.UnaryOp( expr, op=ops[root](), operand=operand.force_expr) - return operand - _symn = some(lambda x: isinstance(x, HySymbol) and "." not in x) @special(["import", "require"], [many(