diff options
author | Raymond Hettinger <python@rcn.com> | 2005-01-01 06:10:26 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2005-01-01 06:10:26 (GMT) |
commit | 346e67f80553be5297dccd43db7a71f4b81bdcab (patch) | |
tree | 5471bf345ac8a53a139d4032f62658dd9dac6d87 /Lib | |
parent | 68804315e0f2fe567e62c7023bc87ee358a480e7 (diff) | |
download | cpython-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.)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/locale.py | 2 |
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 |