summaryrefslogtreecommitdiffstats
path: root/Lib/locale.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-03-30 15:42:13 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-03-30 15:42:13 (GMT)
commit103d6e7a3c9feed2ef54d51c77f0daa614dc936a (patch)
tree6410335789a343487a64a981eec76eaf4c8f2dda /Lib/locale.py
parent45ec95d4d8d42cd896eb1fb436e1f29c8130b784 (diff)
downloadcpython-103d6e7a3c9feed2ef54d51c77f0daa614dc936a.zip
cpython-103d6e7a3c9feed2ef54d51c77f0daa614dc936a.tar.gz
cpython-103d6e7a3c9feed2ef54d51c77f0daa614dc936a.tar.bz2
Support '' as the argument for the setlocale emulation. Fixes #678259.
Diffstat (limited to 'Lib/locale.py')
-rw-r--r--Lib/locale.py2
1 files changed, 1 insertions, 1 deletions
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 @@ 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'