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

(Contributed by Jiwon Seo.)
This commit is contained in:
Raymond Hettinger 2005-01-01 06:10:26 +00:00
parent 68804315e0
commit 346e67f805
1 changed files with 1 additions and 1 deletions

View File

@ -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