commit | 7519e7af4207b46909de6374adac520f9205fe4f | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Fri Mar 23 17:00:07 2001 +0000 |
committer | Barry Warsaw <barry@python.org> | Fri Mar 23 17:00:07 2001 +0000 |
tree | bbe1de95049dad0af17db73f6ad01cd84728bd72 | |
parent | 2262a80fb3ad3cb4850a7018146963df94a0b7a1 [diff] [blame] |
setlocale(): In _locale-missing compatibility function, string comparison should be done with != instead of "is not".
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 @@ """ 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'