mirror of https://github.com/python/cpython
Import readline when possible to make the commaninterpreter UI nicer.
This commit is contained in:
parent
00833d507b
commit
9cb98572af
|
@ -531,6 +531,10 @@ def f8(x):
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import cmd
|
import cmd
|
||||||
|
try:
|
||||||
|
import readline
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
class ProfileBrowser(cmd.Cmd):
|
class ProfileBrowser(cmd.Cmd):
|
||||||
def __init__(self, profile=None):
|
def __init__(self, profile=None):
|
||||||
|
|
Loading…
Reference in New Issue