Skip to content

Commit 81a152c

Browse files
committed
Fixed broken pyspark shell.
Author: Reynold Xin <rxin@apache.org> Closes #444 from rxin/pyspark and squashes the following commits: fc11356 [Reynold Xin] Made the PySpark shell version checking compatible with Python 2.6. 571830b [Reynold Xin] Fixed broken pyspark shell.
1 parent 3c7a9ba commit 81a152c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/pyspark/shell.py

Lines changed: 2 additions & 2 deletions
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)
@@ -53,7 +53,7 @@
5353
platform.python_version(),
5454
platform.python_build()[0],
5555
platform.python_build()[1]))
56-
print("Spark context available as sc.")
56+
print("SparkContext available as sc.")
5757

5858
if add_files != None:
5959
print("Adding files: [%s]" % ", ".join(add_files))

0 commit comments

Comments
 (0)