Fix two typos in __imul__. Closes Bug #117745.

This commit is contained in:
Guido van Rossum 2000-10-25 21:58:20 +00:00
parent e752baae71
commit add8d86325
1 changed files with 2 additions and 2 deletions

View File

@ -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: