From 346e67f80553be5297dccd43db7a71f4b81bdcab Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 1 Jan 2005 06:10:26 +0000 Subject: SF patch #1051395: locale.getdefaultlocale does not return tuple in some OS (Contributed by Jiwon Seo.) --- Lib/locale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/locale.py b/Lib/locale.py index ae6e55b..bf79952 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 -- cgit v0.12