1. Jason R. Coombs
  2. cpython-pep302

Commits

Senthil Kumaran  committed 41a2327 Merge

merge heads

  • Participants
  • Parent commits 51ad2d4, d370d60
  • Branches 2.7

Comments (0)

Files changed (2)

File Lib/locale.py

View file
         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)

File Misc/NEWS

View file
 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.