Skip to content

Commit 22132a4

Browse files
committed
[SPARK-2470] wrap conditionals in parentheses
1 parent 24639bc commit 22132a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/pyspark/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ def _ensure_initialized(cls, instance=None, gateway=None):
191191
SparkContext._writeToFile = SparkContext._jvm.PythonRDD.writeToFile
192192

193193
if instance:
194-
if SparkContext._active_spark_context and
195-
SparkContext._active_spark_context != instance:
194+
if (SparkContext._active_spark_context and
195+
SparkContext._active_spark_context != instance):
196196
currentMaster = SparkContext._active_spark_context.master
197197
currentAppName = SparkContext._active_spark_context.appName
198198
callsite = SparkContext._active_spark_context._callsite

0 commit comments

Comments
 (0)