Skip to content

Commit

Permalink
[SPARK-2470] wrap conditionals in parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
nchammas committed Jul 21, 2014
1 parent 24639bc commit 22132a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/pyspark/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ def _ensure_initialized(cls, instance=None, gateway=None):
SparkContext._writeToFile = SparkContext._jvm.PythonRDD.writeToFile

if instance:
if SparkContext._active_spark_context and
SparkContext._active_spark_context != instance:
if (SparkContext._active_spark_context and
SparkContext._active_spark_context != instance):
currentMaster = SparkContext._active_spark_context.master
currentAppName = SparkContext._active_spark_context.appName
callsite = SparkContext._active_spark_context._callsite
Expand Down

0 comments on commit 22132a4

Please sign in to comment.