summaryrefslogtreecommitdiffstats
path: root/Lib/pstats.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/pstats.py')
-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):