mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Import readline when possible to make the commaninterpreter UI nicer.
This commit is contained in:
parent
00833d507b
commit
9cb98572af
1 changed files with 4 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue