]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
In Lib/locale.py, setlocale emulation, use != and not is not to compare
authorMoshe Zadka <moshez@math.huji.ac.il>
Fri, 30 Mar 2001 14:48:14 +0000 (14:48 +0000)
committerMoshe Zadka <moshez@math.huji.ac.il>
Fri, 30 Mar 2001 14:48:14 +0000 (14:48 +0000)
strings

Lib/locale.py
Misc/NEWS

index 401c712104aa8de99b8ed029e20c67fe51f230a7..fe3b61d94697616793461bc73ec31d73a4a5c4c4 100644 (file)
@@ -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'
 
index 93adb2d54c290942441f332822fbcdbd7f7dd0e5..c9348c21465973ba3e2f3ed3c2071e4d8501ec62 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -23,6 +23,10 @@ http://sourceforge.net/tracker/index.php?func=detail&aid=<id>&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?
 =========================