Skip to content

Commit fc11356

Browse files
committed
Made the PySpark shell version checking compatible with Python 2.6.
1 parent 571830b commit fc11356

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/shell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"""
2323

2424
import sys
25-
if sys.version_info.major != 2:
25+
if sys.version_info[0] != 2:
2626
print("Error: Default Python used is Python%s" % sys.version_info.major)
2727
print("\tSet env variable PYSPARK_PYTHON to Python2 binary and re-run it.")
2828
sys.exit(1)

0 commit comments

Comments
 (0)