Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warning when using uvloop.install in python 3.8 #314

Closed
Andarius opened this issue Feb 13, 2020 · 0 comments · Fixed by #327
Closed

Deprecation warning when using uvloop.install in python 3.8 #314

Andarius opened this issue Feb 13, 2020 · 0 comments · Fixed by #327

Comments

@Andarius
Copy link

Andarius commented Feb 13, 2020

uvloop version: 0.14.0
Python version: 3.8.1
Platform: Linux 4.15 KDE neon 5.17
Can you reproduce the bug with PYTHONASYNCIODEBUG in env?: yes
Does uvloop behave differently from vanilla asyncio? How?: yes
uvloop.install() causes DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10 to appear.
No warning when commented.

import asyncpg
import asyncio
import uvloop

PG = 'postgresql://postgres:postgres@localhost:5432/db'


def main():
    uvloop.install()
    loop = asyncio.get_event_loop()
    loop.run_until_complete(asyncpg.create_pool(PG))


if __name__ == '__main__':
    main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant