diff options
| author | Rapptz <[email protected]> | 2019-11-20 02:30:19 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-11-20 02:30:19 -0500 |
| commit | a6f61dcbdecb4badb47040925f29f157da47bf95 (patch) | |
| tree | eb69d643e9b7e57c76d409cc8b5893bb547cf3bb /discord/utils.py | |
| parent | Trailing whitespace in documentation. (diff) | |
| download | discord.py-a6f61dcbdecb4badb47040925f29f157da47bf95.tar.xz discord.py-a6f61dcbdecb4badb47040925f29f157da47bf95.zip | |
Fix all deprecation warnings for 3.8
Diffstat (limited to 'discord/utils.py')
| -rw-r--r-- | discord/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/utils.py b/discord/utils.py index 4da46fcd..2b4f0fda 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -327,8 +327,8 @@ async def async_all(gen, *, check=_isawaitable): return False return True -async def sane_wait_for(futures, *, timeout, loop): - done, pending = await asyncio.wait(futures, timeout=timeout, return_when=asyncio.ALL_COMPLETED, loop=loop) +async def sane_wait_for(futures, *, timeout): + done, pending = await asyncio.wait(futures, timeout=timeout, return_when=asyncio.ALL_COMPLETED) if len(pending) != 0: raise asyncio.TimeoutError() |