cpython: d370d609d09b (original) (raw)
Mercurial > cpython
changeset 70902:d370d609d09b 2.7
Close #3067: locale.setlocale() accepts a Unicode locale. [#3067]
Victor Stinner victor.stinner@haypocalc.com | |
---|---|
date | Mon, 20 Jun 2011 16:14:48 +0200 |
parents | 6c16a31e0442 |
children | 41a23277a35a |
files | Lib/locale.py Misc/NEWS |
diffstat | 2 files changed, 3 insertions(+), 1 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 not isinstance(locale, basestring): # convert to string locale = normalize(_build_localename(locale)) return _setlocale(category, locale)
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -16,6 +16,8 @@ Core and Builtins Library ------- +- Issue #3067: locale.setlocale() accepts a Unicode locale. +