diff --git a/getting_started.rst b/getting_started.rst index dffaa36..2ead394 100644 --- a/getting_started.rst +++ b/getting_started.rst @@ -23,28 +23,20 @@ All platforms with ``conda`` * Create a new Python 3.5 environment (named ``aio35``, use a different if you like):: - .. highlight:: bash - - conda create -n aio35 python=3.5 + conda create -n aio35 python=3.5 * Activate it. Linux and OS X:: - .. highlight:: bash - - $ source activate aio35 + $ source activate aio35 Windows:: - .. highlight:: bash - - $ source activate aio35 + $ source activate aio35 * Install ``aiohttp``:: - .. highlight:: bash - - $(aio35) pip install aiohttp + $(aio35) pip install aiohttp Platform specific ----------------- diff --git a/hello_world.rst b/hello_world.rst index cea3f3f..f925f84 100644 --- a/hello_world.rst +++ b/hello_world.rst @@ -49,8 +49,6 @@ all scheduled :term:`tasks ` could execute, which results in a warning. Warning:: -.. highlight:: none - Task was destroyed but it is pending! task: wait_for=> diff --git a/webscraper.rst b/webscraper.rst index af59b9f..f85fa7a 100644 --- a/webscraper.rst +++ b/webscraper.rst @@ -21,8 +21,6 @@ This is a very simple web server. (See below for the code.) Its only purpose is to wait for a given amount of time. Test it by running it from the command line:: -.. highlight:: bash - $ python simple_server.py It will answer like this:: @@ -127,8 +125,6 @@ difference provides the elapsed run time. Finally, we can run our client:: -.. highlight:: bash - $ python synchronous_client.py and get this output:: @@ -258,8 +254,6 @@ This means, we wait until each pages has been retrieved before asking for the next. Let's run it from the command-line to see what happens:: -.. highlight:: bash - $ async_client_blocking.py It took 11.06 seconds for a total waiting time of 11.00. Waited for 1.00 seconds. @@ -326,8 +320,6 @@ So, for a list with 100 tasks it would mean: Let's see if we got any faster:: -.. highlight:: bash - $ async_client_nonblocking.py It took 5.08 seconds for a total waiting time of 11.00. Waited for 1.00 seconds. @@ -367,8 +359,6 @@ The library aiohttp_ allows to write HTTP client and server applications, using a high-level approach. Install with:: -.. highlight:: bash - $ pip install aiohttp @@ -419,8 +409,6 @@ to ``fetch_page()`` as the first argument. Finally, we run this program:: -.. highlight:: bash - $ python aiohttp_client.py It took 5.04 seconds for a total waiting time of 11.00. Waited for 1.00 seconds.