diff --git a/README.rst b/README.rst index 30420c1..570e059 100644 --- a/README.rst +++ b/README.rst @@ -95,6 +95,8 @@ Example Suppose you start with this async-unaware program:: +.. code-block:: python + import subprocess def main(): @@ -118,6 +120,8 @@ Suppose you start with this async-unaware program:: Using ``greenback``, you can change it to run in a Trio event loop by changing only the top and bottom layers, with no change to ``print_fact()``. :: +.. code-block:: python + import trio import greenback