Skip to content

Commit

Permalink
Replace @asyncio.coroutine decorator with async def
Browse files Browse the repository at this point in the history
In Python 3.11 @asyncio.coroutine decorator was removed and it should
be replaced with async def call.

Fixes: aio-libs#280
  • Loading branch information
hrnciar committed Mar 1, 2022
1 parent 1627c08 commit 1eb2226
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/unit/test_cors_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ async def _handler(request):

class _View(web.View, CorsViewMixin):

@asyncio.coroutine
def get(self):
async def get(self):
return web.Response(text="Done")


Expand Down

0 comments on commit 1eb2226

Please sign in to comment.