[Python-checkins] r72400 - in python/branches/py3k: Lib/locale.py

jeroen.ruigrok python-checkins at python.org
Wed May 6 15:18:35 CEST 2009


Author: jeroen.ruigrok
Date: Wed May  6 15:18:35 2009
New Revision: 72400

Log:
Merged revisions 72399 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72399 | jeroen.ruigrok | 2009-05-06 15:16:36 +0200 (wo, 06 mei 2009) | 4 lines
  
  Be more explicit about the error we are catching.
  
  Requested by: Antoine Pitrou
........


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Lib/locale.py

Modified: python/branches/py3k/Lib/locale.py
==============================================================================
--- python/branches/py3k/Lib/locale.py	(original)
+++ python/branches/py3k/Lib/locale.py	Wed May  6 15:18:35 2009
@@ -566,7 +566,7 @@
                 oldloc = setlocale(LC_CTYPE)
                 try:
                     setlocale(LC_CTYPE, "")
-                except:
+                except Error:
                     pass
                 result = nl_langinfo(CODESET)
                 setlocale(LC_CTYPE, oldloc)


More information about the Python-checkins mailing list