From 3d9d7795cdc9e3337a3493f2f370d801c4b4b96b Mon Sep 17 00:00:00 2001 From: Phillip Kent Date: Tue, 26 Apr 2016 11:21:01 +0100 Subject: [PATCH] fix bug in using readline in Windows --- cloudmonkey/cloudmonkey.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cloudmonkey/cloudmonkey.py b/cloudmonkey/cloudmonkey.py index e32878e..b106362 100644 --- a/cloudmonkey/cloudmonkey.py +++ b/cloudmonkey/cloudmonkey.py @@ -67,7 +67,8 @@ print("Module readline not found, autocompletions will fail", e) else: import rlcompleter - if 'libedit' in readline.__doc__: + readline_doc = getattr(readline, '__doc__', '') + if readline_doc is not None and 'libedit' in readline_doc: readline.parse_and_bind("bind ^I rl_complete") readline.parse_and_bind("bind ^R em-inc-search-prev") normal_readline = False