Skip to content

Commit ae8b2ba

Browse files
authored
Replace @asyncio.coroutine decorator with async def (#412)
In Python 3.11 @asyncio.coroutine decorator was removed and it should be replaced with async def call. Fixes: #280
1 parent 4846e87 commit ae8b2ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/unit/test_cors_config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ async def _handler(request):
2929

3030
class _View(web.View, CorsViewMixin):
3131

32-
@asyncio.coroutine
33-
def get(self):
32+
async def get(self):
3433
return web.Response(text="Done")
3534

3635

0 commit comments

Comments
 (0)