From 59847835937f1a637f4b8757c7deba281b5b93ef Mon Sep 17 00:00:00 2001 From: Moshe Zadka Date: Fri, 30 Mar 2001 14:48:14 +0000 Subject: [PATCH] In Lib/locale.py, setlocale emulation, use != and not is not to compare strings --- Lib/locale.py | 2 +- Misc/NEWS | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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? ========================= -- 2.47.3