summaryrefslogtreecommitdiffstats
path: root/Lib/UserString.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-10-25 21:58:20 (GMT)
committerGuido van Rossum <guido@python.org>2000-10-25 21:58:20 (GMT)
commitadd8d8632528d104a3a1e653ec815ed2e2c75b7a (patch)
treeafea107aed129173fac21bf675ed3976e4f868bf /Lib/UserString.py
parente752baae71b199ae7ec63e0ae376859f7a306764 (diff)
downloadcpython-add8d8632528d104a3a1e653ec815ed2e2c75b7a.zip
cpython-add8d8632528d104a3a1e653ec815ed2e2c75b7a.tar.gz
cpython-add8d8632528d104a3a1e653ec815ed2e2c75b7a.tar.bz2
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 ea3d515..d8eec15 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: