Import readline when possible to make the commaninterpreter UI nicer.

This commit is contained in:
Eric S. Raymond 2001-04-14 01:48:41 +00:00
parent 00833d507b
commit 9cb98572af
1 changed files with 4 additions and 0 deletions

View 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):