]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Import readline when possible to make the commaninterpreter UI nicer.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 14 Apr 2001 01:48:41 +0000 (01:48 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 14 Apr 2001 01:48:41 +0000 (01:48 +0000)
Lib/pstats.py

index 898871aee010d353ebb1b3e13b27ed0a1c090c8a..ac8cd3a74d59ec199dba44e575a4cc18467c4ae2 100644 (file)
@@ -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):