Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Davies Liu committed Apr 7, 2015
1 parent d2f053b commit 2a1857a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/pyspark/shuffle.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def next(self):

class ChainedIterable(object):
"""
Picklable chained iterator, similar to itertools.chain.fromiterable()
Picklable chained iterator, similar to itertools.chain.from_iterable()
"""
def __init__(self, iterators):
self.iterators = iterators
Expand All @@ -660,7 +660,7 @@ def __len__(self):
return sum(len(vs) for vs in self.iterators)

def __iter__(self):
return itertools.chain.fromiterable(self.iterators)
return itertools.chain.from_iterable(self.iterators)


class ExternalGroupBy(ExternalMerger):
Expand Down

0 comments on commit 2a1857a

Please sign in to comment.