uasyncio: test_http_client.py: Use run_until_complete().

pull/11/head
Paul Sokolovsky 2014-10-24 00:03:27 +03:00
rodzic 1256840278
commit 35f4720962
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -20,6 +20,5 @@ url = "google.com"
loop = asyncio.get_event_loop()
#task = asyncio.async(print_http_headers(url))
#loop.run_until_complete(task)
loop.call_soon(print_http_headers(url))
loop.run_forever()
loop.run_until_complete(print_http_headers(url))
loop.close()