Commit ecb863b2 authored by Victor Stinner's avatar Victor Stinner

Revert d370d609d09b as requested by Terry Jan Reedy:

"#3067: locale.setlocale() accepts a Unicode locale."
parent f64a0cff
...@@ -525,7 +525,7 @@ def setlocale(category, locale=None): ...@@ -525,7 +525,7 @@ def setlocale(category, locale=None):
category may be given as one of the LC_* values. category may be given as one of the LC_* values.
""" """
if locale and not isinstance(locale, basestring): if locale and type(locale) is not type(""):
# convert to string # convert to string
locale = normalize(_build_localename(locale)) locale = normalize(_build_localename(locale))
return _setlocale(category, locale) return _setlocale(category, locale)
......
...@@ -16,8 +16,6 @@ Core and Builtins ...@@ -16,8 +16,6 @@ Core and Builtins
Library Library
------- -------
- Issue #3067: locale.setlocale() accepts a Unicode locale.
- Issue #11700: mailbox proxy object close methods can now be called multiple - Issue #11700: mailbox proxy object close methods can now be called multiple
times without error, and _ProxyFile now closes the wrapped file. times without error, and _ProxyFile now closes the wrapped file.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment