From 9cb98572af1ddfd4efbb6d97220c316e6fa95fda Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 14 Apr 2001 01:48:41 +0000 Subject: [PATCH] Import readline when possible to make the commaninterpreter UI nicer. --- Lib/pstats.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/pstats.py b/Lib/pstats.py index 898871aee01..ac8cd3a74d5 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):