From a5053fd9447ae1d41e600418bf9fcb158398e8d0 Mon Sep 17 00:00:00 2001 From: blerer Date: Fri, 23 Oct 2015 09:39:31 +0200 Subject: [PATCH] Add a check to cqlsh to require Python-2.7 patch by Benjamin Lerer; reviewed by Stefania Alborghetti for CASSANDRA-10561 --- bin/cqlsh.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/cqlsh.py b/bin/cqlsh.py index a15fb02549..7f2d39b71c 100644 --- a/bin/cqlsh.py +++ b/bin/cqlsh.py @@ -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"