mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
merge heads
This commit is contained in:
commit
3fdf9d43e5
2 changed files with 3 additions and 1 deletions
|
@ -525,7 +525,7 @@ def setlocale(category, locale=None):
|
|||
category may be given as one of the LC_* values.
|
||||
|
||||
"""
|
||||
if locale and type(locale) is not type(""):
|
||||
if locale and not isinstance(locale, basestring):
|
||||
# convert to string
|
||||
locale = normalize(_build_localename(locale))
|
||||
return _setlocale(category, locale)
|
||||
|
|
|
@ -16,6 +16,8 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #3067: locale.setlocale() accepts a Unicode locale.
|
||||
|
||||
- Issue #11700: mailbox proxy object close methods can now be called multiple
|
||||
times without error, and _ProxyFile now closes the wrapped file.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue