From e8187615e281c409516b64eda5f7a5a56274e5a1 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 11 May 2001 19:21:41 +0000 Subject: When guarding an import, only catch ImportError. --- Lib/pstats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v0.12