[Python-checkins] python/dist/src/Lib locale.py,1.28,1.28.4.1

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Sat Jan 1 07:12:29 CET 2005


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26130

Modified Files:
      Tag: release24-maint
	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.28
retrieving revision 1.28.4.1
diff -u -d -r1.28 -r1.28.4.1
--- locale.py	26 Jul 2004 12:45:18 -0000	1.28
+++ locale.py	1 Jan 2005 06:12:26 -0000	1.28.4.1
@@ -272,7 +272,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