Skip to content

Commit 0486ae3

Browse files
style fixes
1 parent 8ed89a6 commit 0486ae3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/pyspark/rdd.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,15 +704,16 @@ def pipe_objs(out):
704704
out.write(s.encode('utf-8'))
705705
out.close()
706706
Thread(target=pipe_objs, args=[pipe.stdin]).start()
707+
707708
def check_return_code():
708709
pipe.wait()
709710
if pipe.returncode:
710711
raise Exception("Pipe function `%s' exited "
711-
"with error code %d" % (command, pipe.returncode))
712+
"with error code %d" % (command, pipe.returncode))
712713
else:
713714
return None
714715
return (x.rstrip(b'\n').decode('utf-8') for x in
715-
chain(iter(pipe.stdout.readline, b''), iter(check_return_code, None)))
716+
chain(iter(pipe.stdout.readline, b''), iter(check_return_code, None)))
716717
return self.mapPartitions(func)
717718

718719
def foreach(self, f):

0 commit comments

Comments
 (0)