Mercurial > cpython-lru_cache-weakref
diff Lib/UserString.py @ 15335:ec79800f4c27 legacy-trunk
Fix two typos in __imul__. Closes Bug #117745.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 25 Oct 2000 21:58:20 +0000 |
| parents | 51a33a3b2ba9 |
| children | 4c01ee0a8073 |
line wrap: on
line diff
--- a/Lib/UserString.py Wed Oct 25 21:18:12 2000 +0000 +++ b/Lib/UserString.py Wed Oct 25 21:58:20 2000 +0000 @@ -61,8 +61,8 @@ def __mul__(self, n): return self.__class__(self.data*n) __rmul__ = __mul__ - def __imull__(self, n): - self.data += n + def __imul__(self, n): + self.data *= n return self # the following methods are defined in alphabetical order:
