summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-09-03 05:13:14 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-09-03 05:13:14 (GMT)
commit8ad1dd7df11454abf51354e4f6ddef69167088f9 (patch)
tree26525cf959caa6285aec1a5b07583cf6ec2fdcf2
parent25f90d5c5dc70931f750258d5e70e6a916cdf23a (diff)
downloadcpython-8ad1dd7df11454abf51354e4f6ddef69167088f9.zip
cpython-8ad1dd7df11454abf51354e4f6ddef69167088f9.tar.gz
cpython-8ad1dd7df11454abf51354e4f6ddef69167088f9.tar.bz2
Catch locale.error as well. Fixes #788378. Will backport to 2.3.
-rw-r--r--Lib/idlelib/IOBinding.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py
index 0c3ae7f..391be77 100644
--- a/Lib/idlelib/IOBinding.py
+++ b/Lib/idlelib/IOBinding.py
@@ -29,7 +29,7 @@ except ImportError:
try:
import locale
locale.setlocale(locale.LC_CTYPE, "")
-except ImportError:
+except (ImportError, locale.error):
pass
encoding = "ascii"