Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit add8d86

Browse files
committed
Fix two typos in __imul__. Closes Bug #117745.
1 parent e752baa commit add8d86

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/UserString.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ def __iadd__(self, other):
6161
def __mul__(self, n):
6262
return self.__class__(self.data*n)
6363
__rmul__ = __mul__
64-
def __imull__(self, n):
65-
self.data += n
64+
def __imul__(self, n):
65+
self.data *= n
6666
return self
6767

6868
# the following methods are defined in alphabetical order:

0 commit comments

Comments
 (0)