summaryrefslogtreecommitdiff
path: root/Lib/UserString.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-10-25 21:58:20 +0000
committerGuido van Rossum <guido@python.org>2000-10-25 21:58:20 +0000
commit17d1385443c34077087f34f054e797d66947eba8 (patch)
treebc2e83c8a6805a506034400755aaba42838461d2 /Lib/UserString.py
parent9a97b05f0856f3988a309d90303128ab14bdc029 (diff)
downloadcpython-17d1385443c34077087f34f054e797d66947eba8.tar.gz
Fix two typos in __imul__. Closes Bug #117745.
Diffstat (limited to 'Lib/UserString.py')
-rwxr-xr-xLib/UserString.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/UserString.py b/Lib/UserString.py
index ea3d5155eb..d8eec1566d 100755
--- a/Lib/UserString.py
+++ b/Lib/UserString.py
@@ -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: