Permalink
Browse files

correct the lines wrapping

  • Loading branch information...
1 parent d0c71f3 commit 1fea8133669f2e7926364659179fa6023a3d06f6 @ScrapCodes ScrapCodes committed Mar 7, 2014
Showing with 4 additions and 3 deletions.
  1. +4 −3 python/pyspark/rdd.py
View
@@ -331,9 +331,10 @@ def intersection(self, other):
>>> rdd1.intersection(rdd2).collect()
[1, 2, 3]
"""
- return self.map(lambda v: (v, None)).cogroup(
- other.map(lambda v: (v, None))).filter(
- lambda x: (len(x[1][0]) != 0) and (len(x[1][1]) != 0)).keys()
+ return self.map(lambda v: (v, None)) \
+ .cogroup(other.map(lambda v: (v, None))) \
+ .filter(lambda x: (len(x[1][0]) != 0) and (len(x[1][1]) != 0)) \
+ .keys()
def _reserialize(self):
if self._jrdd_deserializer == self.ctx.serializer:

0 comments on commit 1fea813

Please sign in to comment.