summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/dist.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2002-10-31 13:39:33 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2002-10-31 13:39:33 (GMT)
commitccf4e421b829ce69eb62806fdd77eb71249713dd (patch)
tree0ac2b295cefbdd326b64a69c224de005dc35c432 /Lib/distutils/dist.py
parent0ae2981dec3de96a1f7d63b0535992cf1462ac92 (diff)
downloadcpython-ccf4e421b829ce69eb62806fdd77eb71249713dd.zip
cpython-ccf4e421b829ce69eb62806fdd77eb71249713dd.tar.gz
cpython-ccf4e421b829ce69eb62806fdd77eb71249713dd.tar.bz2
Catch only ImportError
Diffstat (limited to 'Lib/distutils/dist.py')
-rw-r--r--Lib/distutils/dist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/dist.py b/Lib/distutils/dist.py
index c71cb36..dbeeb8b 100644
--- a/Lib/distutils/dist.py
+++ b/Lib/distutils/dist.py
@@ -15,7 +15,7 @@ from copy import copy
try:
import warnings
-except:
+except ImportError:
warnings = None
from distutils.errors import *