mirror of https://github.com/python/cpython
setlocale(): In _locale-missing compatibility function, string
comparison should be done with != instead of "is not".
This commit is contained in:
parent
2262a80fb3
commit
7519e7af42
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in New Issue