1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-10 01:25:34 +00:00

rename file

This commit is contained in:
Luiz Menezes
2016-08-11 08:32:47 -03:00
parent 9a5214888b
commit 066752aa0b
2 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
import asyncio
@asyncio.coroutine
def aiohttp_request(session, method, url, as_text, **kwargs):
response = yield from session.request(method, url, **kwargs)
return response, (yield from response.text()) if as_text else (yield from response.json())