Skip to content

Commit

Permalink
Oups.
Browse files Browse the repository at this point in the history
  • Loading branch information
eriknw committed Aug 10, 2016
1 parent bb66d36 commit 72c3615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolz/itertoolz.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ def sliding_window(n, seq):
# An efficient FIFO data structure with maximum length
d = collections.deque(itertools.islice(it, n), n)
if len(d) != n:
return
raise StopIteration()
d_append = d.append
for item in it:
yield tuple(d)
Expand Down

0 comments on commit 72c3615

Please sign in to comment.