Skip to content

Commit

Permalink
Merge pull request #1 from wo0dyn/feature/update-readme
Browse files Browse the repository at this point in the history
Add syntax highlighting for python sample codes
  • Loading branch information
AntoineCezar committed Jan 20, 2016
2 parents d259c86 + ad49164 commit 3c5583d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ timeout context manager and decorator.
Usage
-----

As a context manager::
As a context manager:

.. code:: python
from timeoutcontext import timeout, TimeoutException
from time import sleep
Expand All @@ -32,7 +34,9 @@ As a context manager::
except TimeoutException:
print('timeout')
As a decorator::
As a decorator:

.. code:: python
from timeoutcontext import timeout, TimeoutException
from time import sleep
Expand Down

0 comments on commit 3c5583d

Please sign in to comment.