[py3] Fixed F-expression right-hand division

Complementary to commit 62a9ed0ac.
This commit is contained in:
Claude Paroz 2012-08-15 13:27:40 +02:00
parent 64a3c7f9ae
commit de2cb5fede
1 changed files with 2 additions and 1 deletions

View File

@ -80,8 +80,9 @@ class ExpressionNode(tree.Node):
def __rmul__(self, other):
return self._combine(other, self.MUL, True)
def __rdiv__(self, other):
def __rtruediv__(self, other):
return self._combine(other, self.DIV, True)
__rdiv__ = __rtruediv__ # Python 2 compatibility
def __rmod__(self, other):
return self._combine(other, self.MOD, True)