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,
|
ops = {"not": ast.Not,
|
||||||
"~": ast.Invert}
|
"~": ast.Invert}
|
||||||
operand = self.compile(arg)
|
operand = self.compile(arg)
|
||||||
|
return operand + asty.UnaryOp(
|
||||||
operand += asty.UnaryOp(
|
|
||||||
expr, op=ops[root](), operand=operand.force_expr)
|
expr, op=ops[root](), operand=operand.force_expr)
|
||||||
|
|
||||||
return operand
|
|
||||||
|
|
||||||
_symn = some(lambda x: isinstance(x, HySymbol) and "." not in x)
|
_symn = some(lambda x: isinstance(x, HySymbol) and "." not in x)
|
||||||
|
|
||||||
@special(["import", "require"], [many(
|
@special(["import", "require"], [many(
|
||||||
|
Loading…
Reference in New Issue
Block a user