Commit 103d6e7a authored by Martin v. Löwis's avatar Martin v. Löwis

Support '' as the argument for the setlocale emulation. Fixes #678259.

parent 45ec95d4
...@@ -69,7 +69,7 @@ except ImportError: ...@@ -69,7 +69,7 @@ except ImportError:
""" setlocale(integer,string=None) -> string. """ setlocale(integer,string=None) -> string.
Activates/queries locale processing. 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' raise Error, '_locale emulation only supports "C" locale'
return 'C' 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