| commit | 103d6e7a3c9feed2ef54d51c77f0daa614dc936a | [log] [tgz] |
|---|---|---|
| author | Martin v. Löwis <martin@v.loewis.de> | Sun Mar 30 15:42:13 2003 +0000 |
| committer | Martin v. Löwis <martin@v.loewis.de> | Sun Mar 30 15:42:13 2003 +0000 |
| tree | 6410335789a343487a64a981eec76eaf4c8f2dda | |
| parent | 45ec95d4d8d42cd896eb1fb436e1f29c8130b784 [diff] |
Support '' as the argument for the setlocale emulation. Fixes #678259.
diff --git a/Lib/locale.py b/Lib/locale.py index 3551261..2028948 100644 --- a/Lib/locale.py +++ b/Lib/locale.py
@@ -69,7 +69,7 @@ """ 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'