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

This commit is contained in:
Martin v. Löwis 2003-03-30 15:42:13 +00:00
parent 45ec95d4d8
commit 103d6e7a3c
1 changed files with 1 additions and 1 deletions

View File

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