mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +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):
|
||||
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…
Add table
Add a link
Reference in a new issue