Sfoglia il codice sorgente

Fixed typo in ExpressionBase magic method __div__.

Sander Mathijs van Veen 14 anni fa
parent
commit
1b1b7bcf93
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/node.py

+ 1 - 1
src/node.py

@@ -129,7 +129,7 @@ class ExpressionBase(object):
         return ExpressionNode('*', self, to_expression(other))
 
     def __div__(self, other):
-        return ExpressionNode('-', self, to_expression(other))
+        return ExpressionNode('/', self, to_expression(other))
 
     def __pow__(self, other):
         return ExpressionNode('^', self, to_expression(other))