From: Eric S. Raymond Date: Sat, 14 Apr 2001 01:48:41 +0000 (+0000) Subject: Import readline when possible to make the commaninterpreter UI nicer. X-Git-Tag: v2.1c2~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9cb98572af1ddfd4efbb6d97220c316e6fa95fda;p=thirdparty%2FPython%2Fcpython.git Import readline when possible to make the commaninterpreter UI nicer. --- diff --git a/Lib/pstats.py b/Lib/pstats.py index 898871aee010..ac8cd3a74d59 100644 --- a/Lib/pstats.py +++ b/Lib/pstats.py @@ -531,6 +531,10 @@ def f8(x): if __name__ == '__main__': import cmd + try: + import readline + except: + pass class ProfileBrowser(cmd.Cmd): def __init__(self, profile=None):