Skip to content

Commit 7f58e49

Browse files
authored
Merge pull request #10 from smithk86/master
asyncio.wait() no longer supports the "loop" argument as of Python 3.10
2 parents 1da1080 + d8e7fa1 commit 7f58e49

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

asyncio_pool/mx_asyncgen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
async def iterwait(futures, *, flat=True, get_result=getres.flat,
8-
timeout=None, yield_when=aio.ALL_COMPLETED, loop=None):
8+
timeout=None, yield_when=aio.ALL_COMPLETED):
99
'''Wraps `asyncio.wait` into asynchronous generator, accessible with
1010
`async for` syntax. May be useful in conjunction with `spawn_n`.
1111
@@ -19,7 +19,7 @@ async def iterwait(futures, *, flat=True, get_result=getres.flat,
1919
_futures = futures[:]
2020
while _futures:
2121
done, _futures = await aio.wait(_futures, timeout=timeout,
22-
return_when=yield_when, loop=loop)
22+
return_when=yield_when)
2323
if flat:
2424
for fut in done:
2525
yield get_result(fut)

run_tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ py36=python3.6
66
py37=python3.7
77
py38=python3.8
88
py39=python3.9
9+
py310=python3.10
910

1011
default_env=$py37
1112

1213

1314
todo=${@:-"./tests"}
1415

15-
for py in $py35 $py36 $py37 $py38 $py39 $pypy3
16+
for py in $pypy3 $py35 $py36 $py37 $py38 $py39 $py310
1617
do
1718
echo ""
1819
if [ -x "$(command -v $py)" ]; then

setup_dev.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ py36=python3.6
66
py37=python3.7
77
py38=python3.8
88
py39=python3.9
9+
py310=python3.10
910

1011
default_env=$py37
1112

1213

13-
for py in $pypy3 $py35 $py36 $py37 $py38 $py39
14+
for py in $pypy3 $py35 $py36 $py37 $py38 $py39 $py310
1415
do
1516
if [ -x "$(command -v $py)" ]; then
1617
pyname="$(basename $py)"

0 commit comments

Comments
 (0)