Add syntax highlighting

This commit is contained in:
Matias Insaurralde 2016-10-31 17:39:19 -02:00 committed by George Psarakis
parent 8ef988a0e0
commit 3bc3b3d3b6
1 changed files with 3 additions and 3 deletions

View File

@ -124,7 +124,7 @@ Kombu is using Sphinx, and the latest documentation can be found here:
Quick overview
--------------
::
.. code:: python
from kombu import Connection, Exchange, Queue
@ -169,7 +169,7 @@ Quick overview
Or handle channels manually:
::
.. code:: python
with connection.channel() as channel:
producer = Producer(channel, ...)
@ -179,7 +179,7 @@ Or handle channels manually:
All objects can be used outside of with statements too,
just remember to close the objects after use:
::
.. code:: python
from kombu import Connection, Consumer, Producer