From: Raymond Hettinger Date: Sat, 1 Jan 2005 06:10:26 +0000 (+0000) Subject: SF patch #1051395: locale.getdefaultlocale does not return tuple in some OS X-Git-Tag: v2.5a0~2195 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=346e67f80553be5297dccd43db7a71f4b81bdcab;p=thirdparty%2FPython%2Fcpython.git SF patch #1051395: locale.getdefaultlocale does not return tuple in some OS (Contributed by Jiwon Seo.) --- diff --git a/Lib/locale.py b/Lib/locale.py index ae6e55b3c414..bf799529a460 100644 --- a/Lib/locale.py +++ b/Lib/locale.py @@ -285,7 +285,7 @@ def _parse_localename(localename): return code, 'iso-8859-15' if '.' in code: - return code.split('.')[:2] + return tuple(code.split('.')[:2]) elif code == 'C': return None, None raise ValueError, 'unknown locale: %s' % localename