Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Fix Python 3.11 compatibility
Browse files Browse the repository at this point in the history
`asyncio.coroutine` is no longer needed and removed from Python 3.11.
  • Loading branch information
vfreex committed Mar 8, 2023
1 parent cc478d1 commit 4cd669a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions doozerlib/cli/__init__.py
Expand Up @@ -161,8 +161,6 @@ def click_coroutine(f):
""" A wrapper to allow to use asyncio with click.
https://github.com/pallets/click/issues/85
"""
f = asyncio.coroutine(f)

def wrapper(*args, **kwargs):
loop = asyncio.get_event_loop()
return loop.run_until_complete(f(*args, **kwargs))
Expand Down

0 comments on commit 4cd669a

Please sign in to comment.