commit | 9cb98572af1ddfd4efbb6d97220c316e6fa95fda | [log] [tgz] |
---|---|---|
author | Eric S. Raymond <esr@thyrsus.com> | Sat Apr 14 01:48:41 2001 +0000 |
committer | Eric S. Raymond <esr@thyrsus.com> | Sat Apr 14 01:48:41 2001 +0000 |
tree | 879eff4bb5fcb9bff7d5a66a9a0c1a4c6515f790 | |
parent | 00833d507b999bfdf858ac8b76d5c5a1fd93ec45 [diff] [blame] |
Import readline when possible to make the commaninterpreter UI nicer.
diff --git a/Lib/pstats.py b/Lib/pstats.py index 898871a..ac8cd3a 100644 --- a/Lib/pstats.py +++ b/Lib/pstats.py
@@ -531,6 +531,10 @@ if __name__ == '__main__': import cmd + try: + import readline + except: + pass class ProfileBrowser(cmd.Cmd): def __init__(self, profile=None):