From 4cd669a48da8c1ad7aacb6105e2900e91460deec Mon Sep 17 00:00:00 2001 From: Yuxiang Zhu Date: Wed, 8 Mar 2023 12:17:24 +0800 Subject: [PATCH] Fix Python 3.11 compatibility `asyncio.coroutine` is no longer needed and removed from Python 3.11. --- doozerlib/cli/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/doozerlib/cli/__init__.py b/doozerlib/cli/__init__.py index d1907b6e8..11722dde1 100644 --- a/doozerlib/cli/__init__.py +++ b/doozerlib/cli/__init__.py @@ -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))