[Python-checkins] python/dist/src/Lib locale.py,1.30,1.31
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Sat Jan 1 07:10:29 CET 2005
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25399
Modified Files:
locale.py
Log Message:
SF patch #1051395: locale.getdefaultlocale does not return tuple in some OS
(Contributed by Jiwon Seo.)
Index: locale.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/locale.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- locale.py 13 Dec 2004 19:56:01 -0000 1.30
+++ locale.py 1 Jan 2005 06:10:26 -0000 1.31
@@ -285,7 +285,7 @@
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
More information about the Python-checkins
mailing list