#1182 get rid of @asyncio.coroutine (deprecated in Python 3.8) (#1186)

Signed-off-by: Sławomir Zborowski <slawomir.zborowski@nokia.com>
This commit is contained in:
Sławomir Zborowski
2020-04-25 16:30:21 +02:00
committed by GitHub
parent aafc80add7
commit bed4b95205
4 changed files with 62 additions and 107 deletions

View File

@@ -1,12 +1,10 @@
#!/usr/bin/env python3
import asyncio
import connexion
from aiohttp import web
@asyncio.coroutine
def post_greeting(name):
async def post_greeting(name):
return web.Response(text='Hello {name}'.format(name=name))