merge with 3.2

This commit is contained in:
Sandro Tosi 2011-12-25 17:26:09 +01:00
commit 54af1ba326
1 changed files with 1 additions and 1 deletions

View File

@ -457,7 +457,7 @@ loops that truncate the stream.
if r > n:
return
indices = list(range(n))
cycles = range(n, n-r, -1)
cycles = list(range(n, n-r, -1))
yield tuple(pool[i] for i in indices[:r])
while n:
for i in reversed(range(r)):