setlocale(): In _locale-missing compatibility function, string

comparison should be done with != instead of "is not".
This commit is contained in:
Barry Warsaw 2001-03-23 17:00:07 +00:00
parent 2262a80fb3
commit 7519e7af42
1 changed files with 1 additions and 2 deletions

View File

@ -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'