From: Moshe Zadka Date: Fri, 30 Mar 2001 14:48:14 +0000 (+0000) Subject: In Lib/locale.py, setlocale emulation, use != and not is not to compare X-Git-Tag: v2.0.1c1~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59847835937f1a637f4b8757c7deba281b5b93ef;p=thirdparty%2FPython%2Fcpython.git In Lib/locale.py, setlocale emulation, use != and not is not to compare strings --- diff --git a/Lib/locale.py b/Lib/locale.py index 401c712104aa..fe3b61d94697 100644 --- a/Lib/locale.py +++ b/Lib/locale.py @@ -65,7 +65,7 @@ except ImportError: Activates/queries locale processing. """ if value is not None and \ - value is not 'C': + value != 'C': raise Error, '_locale emulation only supports "C" locale' return 'C' diff --git a/Misc/NEWS b/Misc/NEWS index 93adb2d54c29..c9348c214659 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -23,6 +23,10 @@ http://sourceforge.net/tracker/index.php?func=detail&aid=&group_id=5470&atid - Patch #130117: add a prototype required to compile cleanly on IRIX +- In Lib/locale.py, setlocale emulation, use != and not is not to compare + strings + + What's New in Python 2.0? =========================