Skip to content

Commit f2c5fd0

Browse files
committed
format comments
1 parent 162add1 commit f2c5fd0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Lib/concurrent/futures/_base.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -625,25 +625,25 @@ def map(self, fn, *iterables, timeout=None, chunksize=1, buffersize=None):
625625
# before the first iterator value is required.
626626
def result_iterator():
627627
try:
628-
# Reverse so that the next (FIFO) future is on the right
628+
# reverse so that the next (FIFO) future is on the right
629629
fs.reverse()
630-
# Careful not to keep references to futures or results
630+
# careful not to keep references to futures or results
631631
while fs:
632-
# Wait for the next result
632+
# wait for the next result
633633
if timeout is None:
634634
_result_or_cancel(fs[-1])
635635
else:
636636
_result_or_cancel(fs[-1], end_time - time.monotonic())
637637

638-
# Buffer next task
638+
# buffer next task
639639
if (
640640
buffersize
641641
and (executor := executor_weakref())
642642
and (args := next(zipped_iterables, None))
643643
):
644644
fs.appendleft(executor.submit(fn, *args))
645645

646-
# Yield the awaited result
646+
# yield the awaited result
647647
yield fs.pop().result()
648648
finally:
649649
for future in fs:

0 commit comments

Comments
 (0)