From: Moshe Zadka Date: Sat, 31 Mar 2001 13:32:38 +0000 (+0000) Subject: Fix two typos in __imul__. Closes Bug #117745. X-Git-Tag: v2.0.1c1~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=805e7c61f7b09ea2a63831d68acb9059bfe096ff;p=thirdparty%2FPython%2Fcpython.git Fix two typos in __imul__. Closes Bug #117745. --- diff --git a/Lib/UserString.py b/Lib/UserString.py index ea3d5155eb94..d8eec1566d06 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: diff --git a/Misc/NEWS b/Misc/NEWS index 054923bc3426..45b34a52a292 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -110,6 +110,13 @@ http://sourceforge.net/tracker/index.php?func=detail&aid=&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? =========================