]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix two typos in __imul__. Closes Bug #117745.
authorMoshe Zadka <moshez@math.huji.ac.il>
Sat, 31 Mar 2001 13:32:38 +0000 (13:32 +0000)
committerMoshe Zadka <moshez@math.huji.ac.il>
Sat, 31 Mar 2001 13:32:38 +0000 (13:32 +0000)
Lib/UserString.py
Misc/NEWS

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:
index 054923bc3426e0f86e3da58ab319c6f46f51a100..45b34a52a2921dfd37ec771c4d139befee135323 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -110,6 +110,13 @@ http://sourceforge.net/tracker/index.php?func=detail&aid=<id>&group_id=5470&atid
 - #128475 - pythonrun.c - In Py_Finalize, don't reset initialized flag
             until after the exit funcs have run
 
+- #128713 - mmapmodule.c -  type(mmap_object) blew up on Linux.
+
+- mmap on windows creates a mapping without a name when tagname isn't
+  specified
+
+- #117745 - UserString.py - Fix two typos in __imul__.
+
 What's New in Python 2.0?
 =========================