Minor cleanup in compile_unary_operator
This commit is contained in:
parent
88f33453dc
commit
af8907b151
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user