summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-04-14 01:48:41 (GMT)
committerEric S. Raymond <esr@thyrsus.com>2001-04-14 01:48:41 (GMT)
commit9cb98572af1ddfd4efbb6d97220c316e6fa95fda (patch)
tree879eff4bb5fcb9bff7d5a66a9a0c1a4c6515f790 /Lib
parent00833d507b999bfdf858ac8b76d5c5a1fd93ec45 (diff)
downloadcpython-9cb98572af1ddfd4efbb6d97220c316e6fa95fda.zip
cpython-9cb98572af1ddfd4efbb6d97220c316e6fa95fda.tar.gz
cpython-9cb98572af1ddfd4efbb6d97220c316e6fa95fda.tar.bz2
Import readline when possible to make the commaninterpreter UI nicer.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/pstats.py4
1 files changed, 4 insertions, 0 deletions
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 @@ def f8(x):
if __name__ == '__main__':
import cmd
+ try:
+ import readline
+ except:
+ pass
class ProfileBrowser(cmd.Cmd):
def __init__(self, profile=None):