summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-05-11 19:21:41 (GMT)
committerFred Drake <fdrake@acm.org>2001-05-11 19:21:41 (GMT)
commite8187615e281c409516b64eda5f7a5a56274e5a1 (patch)
treeb5cba95001ba8b1d6830c8f973496d51d8f66be4
parent31e18291c59270a4c84360e7ba725b229a47c7e1 (diff)
downloadcpython-e8187615e281c409516b64eda5f7a5a56274e5a1.zip
cpython-e8187615e281c409516b64eda5f7a5a56274e5a1.tar.gz
cpython-e8187615e281c409516b64eda5f7a5a56274e5a1.tar.bz2
When guarding an import, only catch ImportError.
-rw-r--r--Lib/pstats.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pstats.py b/Lib/pstats.py
index 19478d6..b46727d 100644
--- a/Lib/pstats.py
+++ b/Lib/pstats.py
@@ -533,7 +533,7 @@ if __name__ == '__main__':
import cmd
try:
import readline
- except:
+ except ImportError:
pass
class ProfileBrowser(cmd.Cmd):