Commit de2cb5fe authored by Claude Paroz's avatar Claude Paroz
Browse files

[py3] Fixed F-expression right-hand division

Complementary to commit 62a9ed0a.
parent 64a3c7f9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)