Commit 2be82461 authored by Barry Warsaw's avatar Barry Warsaw

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

comparison should be done with != instead of "is not".
parent a73e20b0
......@@ -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'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment