Fix two typos in __imul__. Closes Bug #117745.
This commit is contained in:
parent
e752baae71
commit
add8d86325
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue