Skip to content

Commit 7c91c7b

Browse files
committed
oops, tuple() just to be safe
1 parent 8062954 commit 7c91c7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unpythonic/it.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ def empty_iterable():
641641
return empty_iterable()
642642
def windowed():
643643
while True:
644-
yield xs
644+
yield tuple(xs)
645645
xs.popleft()
646646
xs.append(next(it)) # let StopIteration propagate
647647
return windowed()

0 commit comments

Comments
 (0)