Commit 71bff3f3 authored by Taddeus Kroes's avatar Taddeus Kroes

Applied pep8.

parent 2c55901f
...@@ -129,7 +129,10 @@ TOKEN_MAP = { ...@@ -129,7 +129,10 @@ TOKEN_MAP = {
def to_expression(obj): def to_expression(obj):
return obj.clone() if isinstance(obj, ExpressionBase) else ExpressionLeaf(obj) if isinstance(obj, ExpressionBase):
return obj.clone()
return ExpressionLeaf(obj)
class ExpressionBase(object): class ExpressionBase(object):
...@@ -704,11 +707,11 @@ def negation_to_node(node): ...@@ -704,11 +707,11 @@ def negation_to_node(node):
nodes. nodes.
""" """
if node.negated: if node.negated:
negations = node.negated negations = node.negated
node = negate(node, 0) node = negate(node, 0)
for i in range(negations): for i in range(negations):
node = ExpressionNode('-', node) node = ExpressionNode('-', node)
if node.is_leaf: if node.is_leaf:
return node return node
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment