diff --git a/Lib/pstats.py b/Lib/pstats.py index 19478d6f3e7..b46727d50bd 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):