Skip to content

Commit

Permalink
Merge pull request #34 from SivaMaplelabs/singleton-comparison
Browse files Browse the repository at this point in the history
Comparison to None should be 'expr is None'
  • Loading branch information
91pavan authored Nov 12, 2018
2 parents ea4b550 + 1e7f070 commit 730d134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/components/files/red-pnda-anom-detect.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
"except NameError:\n",
" sc = pyspark.SparkContext()\n",
"else:\n",
" if sc != None:\n",
" if sc is not None:\n",
" sc.stop()\n",
" sc = pyspark.SparkContext()"
]
Expand Down

0 comments on commit 730d134

Please sign in to comment.