Commit 346e67f8 authored by Raymond Hettinger's avatar Raymond Hettinger

SF patch #1051395: locale.getdefaultlocale does not return tuple in some OS

(Contributed by Jiwon Seo.)
parent 68804315
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment