Skip to content
Snippets Groups Projects
Commit 709a061c authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Applied pep8.

parent 261300cc
No related branches found
No related tags found
No related merge requests found
from ..node import ExpressionNode as N, ExpressionLeaf as L, Scope, \ from ..node import ExpressionLeaf as L, Scope, OP_ADD, OP_POW, OP_MUL, \
OP_ADD, OP_POW, OP_MUL, OP_SIN, OP_COS, OP_TAN OP_SIN, OP_COS, OP_TAN
from ..possibilities import Possibility as P, MESSAGES from ..possibilities import Possibility as P, MESSAGES
from ..translate import _ from ..translate import _
......
from itertools import combinations from itertools import combinations
from ..node import ExpressionNode as Node, ExpressionLeaf as Leaf, Scope, \ from ..node import ExpressionLeaf as Leaf, Scope, OP_ADD, OP_MUL, nary_node, \
OP_ADD, OP_MUL, nary_node, negate negate
from ..possibilities import Possibility as P, MESSAGES from ..possibilities import Possibility as P, MESSAGES
from ..translate import _ from ..translate import _
......
...@@ -38,11 +38,6 @@ def add_numerics(root, args): ...@@ -38,11 +38,6 @@ def add_numerics(root, args):
scope, c0, c1 = args scope, c0, c1 = args
value = c0.actual_value() + c1.actual_value() value = c0.actual_value() + c1.actual_value()
if value < 0:
leaf = Leaf(-value).negate()
else:
leaf = Leaf(value)
# Replace the left node with the new expression # Replace the left node with the new expression
scope.replace(c0, Leaf(abs(value)).negate(int(value < 0))) scope.replace(c0, Leaf(abs(value)).negate(int(value < 0)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment