mirror of https://github.com/python/cpython
Tighten example code.
This commit is contained in:
parent
f287f17779
commit
2b7a5c468b
|
@ -381,7 +381,7 @@ loops that truncate the stream.
|
|||
for i in reversed(range(r)):
|
||||
cycles[i] -= 1
|
||||
if cycles[i] == 0:
|
||||
indices[:] = indices[:i] + indices[i+1:] + indices[i:i+1]
|
||||
indices[i:] = indices[i+1:] + indices[i:i+1]
|
||||
cycles[i] = n - i
|
||||
else:
|
||||
j = cycles[i]
|
||||
|
|
Loading…
Reference in New Issue