[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] xm: allow non-existent readline module
# HG changeset patch # User russell.blaine@xxxxxxx # Date 1187906168 25200 # Node ID 590f85503ec18fc4579b2951e018123bd2a22fc2 # Parent f48c9e5711b1a198d7507738397489edaf42a594 xm: allow non-existent readline module Let xm work even if Python doesn't have its readline module installed. Signed-off-by: John Levon <john.levon@xxxxxxx> diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -626,8 +626,11 @@ class Shell(cmd.Cmd): def preloop(self): cmd.Cmd.preloop(self) - import readline - readline.set_completer_delims(' ') + try: + import readline + readline.set_completer_delims(' ') + except ImportError: + pass def default(self, line): words = shlex.split(line) _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |