mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Support '' as the argument for the setlocale emulation. Fixes #678259.
This commit is contained in:
parent
45ec95d4d8
commit
103d6e7a3c
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue