Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

pylibrabbitmq has been renamed to librabbitmq

  • Loading branch information...
commit 06795602d512b530ea3369193920452a35734bf3 1 parent 7044ac2
@ask authored
Showing with 10 additions and 3 deletions.
  1. +10 −3 kombu/transport/librabbitmq.py
View
13 kombu/transport/librabbitmq.py
@@ -2,17 +2,24 @@
kombu.transport.librabbitmq
===========================
-pylibrabbitmq transport.
+`librabbitmq`_ transport.
+
+.. _`librabbitmq`: http://pypi.python.org/librabbitmq/
:copyright: (c) 2010 - 2012 by Ask Solem.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
+
import socket
-import pylibrabbitmq as amqp
-from pylibrabbitmq import ChannelError, ConnectionError
+try:
+ import librabbitmq as amqp
+ from librabbitmq import ChannelError, ConnectionError
+except ImportError:
+ import pylibrabbitmq as amqp # noqa
+ from pylibrabbitmq import ChannelError, ConnectionError # noqa
from kombu.exceptions import StdChannelError
Please sign in to comment.
Something went wrong with that request. Please try again.