mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00: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