SF patch #1051395: locale.getdefaultlocale does not return tuple in some OS
(Contributed by Jiwon Seo.)
This commit is contained in:
parent
68804315e0
commit
346e67f805
|
@ -285,7 +285,7 @@ def _parse_localename(localename):
|
||||||
return code, 'iso-8859-15'
|
return code, 'iso-8859-15'
|
||||||
|
|
||||||
if '.' in code:
|
if '.' in code:
|
||||||
return code.split('.')[:2]
|
return tuple(code.split('.')[:2])
|
||||||
elif code == 'C':
|
elif code == 'C':
|
||||||
return None, None
|
return None, None
|
||||||
raise ValueError, 'unknown locale: %s' % localename
|
raise ValueError, 'unknown locale: %s' % localename
|
||||||
|
|
Loading…
Reference in New Issue