Skip to content

Commit

Permalink
pep8ing
Browse files Browse the repository at this point in the history
  • Loading branch information
buck heroux committed May 13, 2016
1 parent f4af842 commit 9c37e06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/pyspark/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ def addPyPackage(self, pkg):
import pyspark
import foolib
sc = pyspark.SparkContext()
sc.addPyPackage(foolib)
# foolib now in workers PYTHONPATH
Expand Down
4 changes: 2 additions & 2 deletions python/pyspark/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1955,8 +1955,8 @@ def test_add_py_package(self):
temp.write("triple = lambda x: 3*x")
pkg = __import__(name)
with SparkContext() as sc:
#trips = sc.parallelize([0, 1, 2, 3]).map(pkg.triple)
#sc.addPyPackage(pkg)
# trips = sc.parallelize([0, 1, 2, 3]).map(pkg.triple)
# sc.addPyPackage(pkg)
trips = sc.parallelize([0, 1, 2, 3]).map(lambda x: pkg.triple(x))
self.assertSequenceEqual([0, 3, 6, 9], trips.collect())
finally:
Expand Down

0 comments on commit 9c37e06

Please sign in to comment.