From: Guido van Rossum Date: Wed, 25 Oct 2000 21:58:20 +0000 (+0000) Subject: Fix two typos in __imul__. Closes Bug #117745. X-Git-Tag: v2.1a1~810 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=add8d8632528d104a3a1e653ec815ed2e2c75b7a;p=python Fix two typos in __imul__. Closes Bug #117745. --- 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: