summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2001-03-23 17:00:07 (GMT)
committerBarry Warsaw <barry@python.org>2001-03-23 17:00:07 (GMT)
commit7519e7af4207b46909de6374adac520f9205fe4f (patch)
treebbe1de95049dad0af17db73f6ad01cd84728bd72 /Lib
parent2262a80fb3ad3cb4850a7018146963df94a0b7a1 (diff)
downloadcpython-7519e7af4207b46909de6374adac520f9205fe4f.zip
cpython-7519e7af4207b46909de6374adac520f9205fe4f.tar.gz
cpython-7519e7af4207b46909de6374adac520f9205fe4f.tar.bz2
setlocale(): In _locale-missing compatibility function, string
comparison should be done with != instead of "is not".
Diffstat (limited to 'Lib')
-rw-r--r--Lib/locale.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/locale.py b/Lib/locale.py
index 7a03722..d26560d 100644
--- a/Lib/locale.py
+++ b/Lib/locale.py
@@ -69,8 +69,7 @@ except ImportError:
""" setlocale(integer,string=None) -> string.
Activates/queries locale processing.
"""
- if value is not None and \
- value is not 'C':
+ if value is not None and value != 'C':
raise Error, '_locale emulation only supports "C" locale'
return 'C'