Description: Don't try to unpack an object of type 'unicode' as if it was a tuple. Bug-Ubuntu: https://launchpad.net/bugs/905429 Author: Gunnar Hjalmarsson --- python2.7-2.7.2.orig/Lib/locale.py +++ python2.7-2.7.2/Lib/locale.py @@ -525,7 +525,7 @@ 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)