diff options
author | Barry Warsaw <barry@python.org> | 2001-03-23 17:00:07 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-03-23 17:00:07 (GMT) |
commit | 7519e7af4207b46909de6374adac520f9205fe4f (patch) | |
tree | bbe1de95049dad0af17db73f6ad01cd84728bd72 /Lib/locale.py | |
parent | 2262a80fb3ad3cb4850a7018146963df94a0b7a1 (diff) | |
download | cpython-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/locale.py')
-rw-r--r-- | Lib/locale.py | 3 |
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' |