Prompt on missing dependency in cqlsh on Windows

Patch by Josh McKenzie, reviewed by Jonathan Ellis for CASSANDRA-7749
This commit is contained in:
Joshua McKenzie 2014-08-11 15:30:19 -05:00
parent cb8ce83257
commit 70d9f895da
1 changed files with 2 additions and 0 deletions

View File

@ -728,6 +728,8 @@ class Shell(cmd.Cmd):
try:
import readline
except ImportError:
if platform.system() == 'Windows':
print "WARNING: pyreadline dependency missing. Install to enable tab completion."
pass
else:
old_completer = readline.get_completer()