diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-03-30 15:42:13 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-03-30 15:42:13 +0000 |
commit | cef70c3a6a073476e3cf8a29762fc456cbc4bb4c (patch) | |
tree | 62336f664ac00d09a507aae22d4cbc61bb5aca79 /Lib/locale.py | |
parent | 39b3b5936e06ca766f3474b5f2a9863c6344276b (diff) | |
download | cpython-cef70c3a6a073476e3cf8a29762fc456cbc4bb4c.tar.gz |
Support '' as the argument for the setlocale emulation. Fixes #678259.
Diffstat (limited to 'Lib/locale.py')
-rw-r--r-- | Lib/locale.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/locale.py b/Lib/locale.py index 3551261469..2028948e9b 100644 --- a/Lib/locale.py +++ b/Lib/locale.py @@ -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' |