scripts: csv.py: Fixed use of __div__ vs __truediv__

Not sure if this is an old habit from Python 2, or just because it looks
nicer next to __mul__, __mod__, etc, but in Python 3 this should be
__truediv__ (or __floordiv__), not __div__.
This commit is contained in:
Christopher Haster
2024-11-12 15:05:39 -06:00
parent 02881faf6f
commit 5dc9eabbf7
8 changed files with 11 additions and 11 deletions

View File

@@ -109,7 +109,7 @@ class RInt(co.namedtuple('RInt', 'x')):
def __mul__(self, other):
return self.__class__(self.x * other.x)
def __div__(self, other):
def __truediv__(self, other):
return self.__class__(self.x // other.x)
def __mod__(self, other):