diff options
author | Ask Solem <askh@opera.com> | 2010-06-23 12:10:02 +0200 |
---|---|---|
committer | Ask Solem <askh@opera.com> | 2010-06-23 12:10:02 +0200 |
commit | fe5074208d8c39df7314ae7d2e7f8bf58e3d2fbe (patch) | |
tree | 51279c19bcb7d12c10796209f50c08c5370fc550 /docs | |
parent | da3e75459489e2069b4de487eb578c99bc6a19ed (diff) | |
download | kombu-fe5074208d8c39df7314ae7d2e7f8bf58e3d2fbe.tar.gz |
Added API to readme
Diffstat (limited to 'docs')
-rw-r--r-- | docs/rewrite.rst | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/docs/rewrite.rst b/docs/rewrite.rst index c9bbfed6..ce61a94d 100644 --- a/docs/rewrite.rst +++ b/docs/rewrite.rst @@ -2,8 +2,8 @@ .. code-block:: python - from carrot import Connection, Exchange, Binding - from carrot import Consumer, Producer + from kombu.connection Connection + from kombu.messaging import Exchange, Binding, Consumer, Producer media_exchange = Exchange("media", "direct", durable=True) video_binding = Binding("video", exchange=media_exchange, key="video") @@ -30,12 +30,3 @@ image_binding = Binding("image", exchange=media_exchange, key="image") consumer = Consumer(channel, [video_binding, image_binding]) - - - - - - - - - |