aboutsummaryrefslogtreecommitdiff
path: root/python/pyspark/rddsampler.py
diff options
context:
space:
mode:
authorKen Takagiwa <ken@Kens-MacBook-Pro.local>2014-07-15 21:34:05 -0700
committerReynold Xin <rxin@apache.org>2014-07-15 21:34:05 -0700
commit563acf5edfbfb2fa756a1f0accde0940592663e9 (patch)
treee4df0fc75b2c1aa748e80293dd099b5eb6ea375b /python/pyspark/rddsampler.py
parent9c12de5092312319aa22f24df47a6de0e41a0102 (diff)
downloadspark-563acf5edfbfb2fa756a1f0accde0940592663e9.tar.gz
spark-563acf5edfbfb2fa756a1f0accde0940592663e9.tar.bz2
spark-563acf5edfbfb2fa756a1f0accde0940592663e9.zip
follow pep8 None should be compared using is or is not
http://legacy.python.org/dev/peps/pep-0008/ ## Programming Recommendations - Comparisons to singletons like None should always be done with is or is not, never the equality operators. Author: Ken Takagiwa <ken@Kens-MacBook-Pro.local> Closes #1422 from giwa/apache_master and squashes the following commits: 7b361f3 [Ken Takagiwa] follow pep8 None should be checked using is or is not
Diffstat (limited to 'python/pyspark/rddsampler.py')
-rw-r--r--python/pyspark/rddsampler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/pyspark/rddsampler.py b/python/pyspark/rddsampler.py
index 845a267e31..122bc38b03 100644
--- a/python/pyspark/rddsampler.py
+++ b/python/pyspark/rddsampler.py
@@ -82,7 +82,7 @@ class RDDSampler(object):
return (num_arrivals - 1)
def shuffle(self, vals):
- if self._random == None:
+ if self._random is None:
self.initRandomGenerator(0) # this should only ever called on the master so
# the split does not matter