Commit 17d13854 authored by Guido van Rossum's avatar Guido van Rossum

Fix two typos in __imul__. Closes Bug #117745.

parent 9a97b05f
......@@ -61,8 +61,8 @@ class UserString:
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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment