cpython: e72a2a60316f (original) (raw)
Mercurial > cpython
changeset 70912:e72a2a60316f 2.7
Revert d370d609d09b as requested by Terry Jan Reedy: "#3067: locale.setlocale() accepts a Unicode locale." [#3067]
Victor Stinner victor.stinner@haypocalc.com | |
---|---|
date | Mon, 20 Jun 2011 22:07:06 +0200 |
parents | 815263546757 |
children | a0ad25ca772b |
files | Lib/locale.py Misc/NEWS |
diffstat | 2 files changed, 1 insertions(+), 3 deletions(-)[+] [-] Lib/locale.py 2 Misc/NEWS 2 |
line wrap: on
line diff
--- a/Lib/locale.py +++ b/Lib/locale.py @@ -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(""): # convert to string locale = normalize(_build_localename(locale)) return _setlocale(category, locale)
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -16,8 +16,6 @@ Core and Builtins Library ------- -- Issue #3067: locale.setlocale() accepts a Unicode locale. -