From 7519e7af4207b46909de6374adac520f9205fe4f Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 23 Mar 2001 17:00:07 +0000 Subject: [PATCH] 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 7a03722a3a7..d26560d69d7 100644 --- a/Lib/locale.py +++ b/Lib/locale.py @@ -69,8 +69,7 @@ def setlocale(category, value=None): """ 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'