]> granicus.if.org Git - python/commitdiff
Fix two typos in __imul__. Closes Bug #117745.
authorGuido van Rossum <guido@python.org>
Wed, 25 Oct 2000 21:58:20 +0000 (21:58 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 25 Oct 2000 21:58:20 +0000 (21:58 +0000)
Lib/UserString.py

index ea3d5155eb943058b868bbe15a2f8e236de35fef..d8eec1566d0654f5f9ff5deb63f5946821d5593b 100755 (executable)
@@ -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: