Message303355
bpo-27144 introduced a regression for `as_completed()`: it used to accept arbitrary iterables but now requires sequences, otherwise raising an exception like:
Traceback (most recent call last):
File "sandcastle/worker/sandcastle_worker.py", line 1266, in get_work_item
File "jupiter/jupiter_client.py", line 166, in acquireWork
File "jupiter/jupiter_client.py", line 241, in _acquire_multiple_async
File "jupiter/jupiter_client.py", line 336, in _wait_for_responses
File "/usr/local/fbcode/gcc-5-glibc-2.23/lib/python3.6/concurrent/futures/_base.py", line 217, in as_completed
total_futures = len(fs)
TypeError: object of type 'map' has no len()
Since `as_completed()` is a very popular function, we need to revert the behavior here. |
|
Date |
User |
Action |
Args |
2017-09-29 19:49:30 | lukasz.langa | set | recipients:
+ lukasz.langa, pitrou, ned.deily, grzgrzgrz3 |
2017-09-29 19:49:30 | lukasz.langa | set | messageid: <1506714570.68.0.213398074469.issue31641@psf.upfronthosting.co.za> |
2017-09-29 19:49:30 | lukasz.langa | link | issue31641 messages |
2017-09-29 19:49:30 | lukasz.langa | create | |
|