diff options
author | Fred Drake <fdrake@acm.org> | 2001-05-11 19:21:41 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-05-11 19:21:41 (GMT) |
commit | e8187615e281c409516b64eda5f7a5a56274e5a1 (patch) | |
tree | b5cba95001ba8b1d6830c8f973496d51d8f66be4 /Lib/pstats.py | |
parent | 31e18291c59270a4c84360e7ba725b229a47c7e1 (diff) | |
download | cpython-e8187615e281c409516b64eda5f7a5a56274e5a1.zip cpython-e8187615e281c409516b64eda5f7a5a56274e5a1.tar.gz cpython-e8187615e281c409516b64eda5f7a5a56274e5a1.tar.bz2 |
When guarding an import, only catch ImportError.
Diffstat (limited to 'Lib/pstats.py')
-rw-r--r-- | Lib/pstats.py | 2 |
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): |