cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alek...@apache.org
Subject [2/3] git commit: cqlsh: correct the rest of libedit detection on windows
Date Sat, 27 Jul 2013 01:45:14 GMT
cqlsh: correct the rest of libedit detection on windows


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/187f73f8
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/187f73f8
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/187f73f8

Branch: refs/heads/trunk
Commit: 187f73f89730b0a37f556eb487f496839c265c70
Parents: af4e127
Author: Aleksey Yeschenko <aleksey@apache.org>
Authored: Sat Jul 27 04:43:40 2013 +0300
Committer: Aleksey Yeschenko <aleksey@apache.org>
Committed: Sat Jul 27 04:43:40 2013 +0300

----------------------------------------------------------------------
 bin/cqlsh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/187f73f8/bin/cqlsh
----------------------------------------------------------------------
diff --git a/bin/cqlsh b/bin/cqlsh
index 4f49862..59aac0d 100755
--- a/bin/cqlsh
+++ b/bin/cqlsh
@@ -846,7 +846,7 @@ class Shell(cmd.Cmd):
             else:
                 old_completer = readline.get_completer()
                 readline.set_completer(self.complete)
-                if 'libedit' in readline.__doc__:
+                if readline.__doc__ is not None and 'libedit' in readline.__doc__:
                     readline.parse_and_bind("bind -e")
                     readline.parse_and_bind("bind '" + self.completekey + "' rl_complete")
                 else:


Mime
View raw message