summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-01-01 06:10:26 (GMT)
committerRaymond Hettinger <python@rcn.com>2005-01-01 06:10:26 (GMT)
commit346e67f80553be5297dccd43db7a71f4b81bdcab (patch)
tree5471bf345ac8a53a139d4032f62658dd9dac6d87
parent68804315e0f2fe567e62c7023bc87ee358a480e7 (diff)
downloadcpython-346e67f80553be5297dccd43db7a71f4b81bdcab.zip
cpython-346e67f80553be5297dccd43db7a71f4b81bdcab.tar.gz
cpython-346e67f80553be5297dccd43db7a71f4b81bdcab.tar.bz2
SF patch #1051395: locale.getdefaultlocale does not return tuple in some OS
(Contributed by Jiwon Seo.)
-rw-r--r--Lib/locale.py2
1 files changed, 1 insertions, 1 deletions
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