Support '' as the argument for the setlocale emulation. Fixes #678259.
This commit is contained in:
parent
45ec95d4d8
commit
103d6e7a3c
|
@ -69,7 +69,7 @@ except ImportError:
|
|||
""" setlocale(integer,string=None) -> string.
|
||||
Activates/queries locale processing.
|
||||
"""
|
||||
if value is not None and value != 'C':
|
||||
if value not in (None, '', 'C'):
|
||||
raise Error, '_locale emulation only supports "C" locale'
|
||||
return 'C'
|
||||
|
||||
|
|
Loading…
Reference in New Issue