Minor cleanup in compile_unary_operator

This commit is contained in:
Kodi Arfer 2018-06-21 11:38:03 -07:00
parent 88f33453dc
commit af8907b151

View File

@ -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(