mirror of
https://github.com/python/cpython.git
synced 2025-10-16 11:49:57 +00:00
Fix two typos in __imul__. Closes Bug #117745.
This commit is contained in:
parent
e752baae71
commit
add8d86325
1 changed files with 2 additions and 2 deletions
|
@ -61,8 +61,8 @@ class UserString:
|
||||||
def __mul__(self, n):
|
def __mul__(self, n):
|
||||||
return self.__class__(self.data*n)
|
return self.__class__(self.data*n)
|
||||||
__rmul__ = __mul__
|
__rmul__ = __mul__
|
||||||
def __imull__(self, n):
|
def __imul__(self, n):
|
||||||
self.data += n
|
self.data *= n
|
||||||
return self
|
return self
|
||||||
|
|
||||||
# the following methods are defined in alphabetical order:
|
# the following methods are defined in alphabetical order:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue