Skip to content

Commit

Permalink
make sure it's iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
Davies Liu committed Apr 9, 2015
1 parent 67772dd commit af3713a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/shuffle.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ class GroupByKey(object):
"""

def __init__(self, iterator):
self.iterator = iterator
self.iterator = iter(iterator)
self.next_item = None

def __iter__(self):
Expand Down

0 comments on commit af3713a

Please sign in to comment.