[Python-checkins] r72399 - python/trunk/Lib/locale.py
jeroen.ruigrok
python-checkins at python.org
Wed May 6 15:16:36 CEST 2009
Author: jeroen.ruigrok
Date: Wed May 6 15:16:36 2009
New Revision: 72399
Log:
Be more explicit about the error we are catching.
Requested by: Antoine Pitrou
Modified:
python/trunk/Lib/locale.py
Modified: python/trunk/Lib/locale.py
==============================================================================
--- python/trunk/Lib/locale.py (original)
+++ python/trunk/Lib/locale.py Wed May 6 15:16:36 2009
@@ -555,7 +555,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