From 21bce1911f0f1fb70771ff96b62d2585e0cb6460 Mon Sep 17 00:00:00 2001 From: nibrag Date: Sat, 7 May 2016 14:47:09 +0300 Subject: [PATCH] Fixed: wrong run_until_complete calling --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 9a39304..b3b1545 100644 --- a/README.rst +++ b/README.rst @@ -70,10 +70,10 @@ aiohttp usage with aiohttp.ClientSession(connector=conn) as ses: async with session.get('http://github.com/') as resp: if resp.status == 200: - return await resp.text() + print(await resp.text()) if __name__ == '__main__': loop = asyncio.get_event_loop() - loop.run_until_complete() - loop.close() \ No newline at end of file + loop.run_until_complete(load_github_main()) + loop.close()