From af8907b151900f77ec3fa0cee8d90ae880b4fa32 Mon Sep 17 00:00:00 2001 From: Kodi Arfer Date: Thu, 21 Jun 2018 11:38:03 -0700 Subject: [PATCH] Minor cleanup in compile_unary_operator --- hy/compiler.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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(