cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [1/2] cloudstack-cloudmonkey git commit: fix bug in using readline in Windows
Date Fri, 15 Jul 2016 11:16:36 GMT
Repository: cloudstack-cloudmonkey
Updated Branches:
  refs/heads/master 38b68fbe0 -> 319c2dc09


fix bug in using readline in Windows


Project: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/commit/3d9d7795
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/tree/3d9d7795
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/diff/3d9d7795

Branch: refs/heads/master
Commit: 3d9d7795cdc9e3337a3493f2f370d801c4b4b96b
Parents: 38b68fb
Author: Phillip Kent <phillip.kent@xmlsoup.com>
Authored: Tue Apr 26 11:21:01 2016 +0100
Committer: Phillip Kent <phillip.kent@xmlsoup.com>
Committed: Tue Apr 26 11:21:01 2016 +0100

----------------------------------------------------------------------
 cloudmonkey/cloudmonkey.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/blob/3d9d7795/cloudmonkey/cloudmonkey.py
----------------------------------------------------------------------
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 @@ except ImportError, e:
     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


Mime
View raw message