Blame SOURCES/1eb2226aaf664d0be746753a32f82ee2e04c2f0b.patch

ae8baa
From 1eb2226aaf664d0be746753a32f82ee2e04c2f0b Mon Sep 17 00:00:00 2001
ae8baa
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= <thrnciar@redhat.com>
ae8baa
Date: Tue, 1 Mar 2022 15:31:54 +0100
ae8baa
Subject: [PATCH] Replace @asyncio.coroutine decorator with async def
ae8baa
ae8baa
In Python 3.11 @asyncio.coroutine decorator was removed and it should
ae8baa
be replaced with async def call.
ae8baa
ae8baa
Fixes: #280
ae8baa
---
ae8baa
 tests/unit/test_cors_config.py | 3 +--
ae8baa
 1 file changed, 1 insertion(+), 2 deletions(-)
ae8baa
ae8baa
diff --git a/tests/unit/test_cors_config.py b/tests/unit/test_cors_config.py
ae8baa
index 817410e..9fe1052 100644
ae8baa
--- a/tests/unit/test_cors_config.py
ae8baa
+++ b/tests/unit/test_cors_config.py
ae8baa
@@ -29,8 +29,7 @@ async def _handler(request):
ae8baa
 
ae8baa
 class _View(web.View, CorsViewMixin):
ae8baa
 
ae8baa
-    @asyncio.coroutine
ae8baa
-    def get(self):
ae8baa
+    async def get(self):
ae8baa
         return web.Response(text="Done")
ae8baa
 
ae8baa