From 7519e7af4207b46909de6374adac520f9205fe4f Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 23 Mar 2001 17:00:07 +0000 Subject: setlocale(): In _locale-missing compatibility function, string comparison should be done with != instead of "is not". --- Lib/locale.py | 3 +-- 1 file changed, 1 insertion(+), 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' -- cgit v0.12