Skip to content

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

Closed
@Andarius

Description

@Andarius

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions