Add a check to cqlsh to require Python-2.7

patch by Benjamin Lerer; reviewed by Stefania Alborghetti for CASSANDRA-10561
This commit is contained in:
blerer 2015-10-23 09:39:31 +02:00
parent bbaa9630c4
commit a5053fd944
1 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,9 @@ from glob import glob
from StringIO import StringIO
from uuid import UUID
if sys.version_info[0] != 2 or sys.version_info[1] != 7:
sys.exit("\nCQL Shell supports only Python 2.7\n")
description = "CQL Shell for Apache Cassandra"
version = "5.0.1"