We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d36c1a1 commit 07e1829Copy full SHA for 07e1829
python/pyspark/ml/wrapper.py
@@ -37,7 +37,7 @@ def __init__(self, java_obj=None):
37
self._java_obj = java_obj
38
39
def __del__(self):
40
- if SparkContext._active_spark_context and not self._java_obj is None:
+ if SparkContext._active_spark_context and self._java_obj is not None:
41
SparkContext._active_spark_context._gateway.detach(self._java_obj)
42
43
@classmethod
0 commit comments