diff --git a/kombu/tests/transport/test_pyamqp.py b/kombu/tests/transport/test_pyamqp.py index c9a35444..b48ec153 100644 --- a/kombu/tests/transport/test_pyamqp.py +++ b/kombu/tests/transport/test_pyamqp.py @@ -5,7 +5,7 @@ import sys from nose import SkipTest try: - import amqp + import amqp # noqa except ImportError: pyamqp = None # noqa else: diff --git a/kombu/transport/pyamqp.py b/kombu/transport/pyamqp.py index 66cd9a69..a15ccaf3 100644 --- a/kombu/transport/pyamqp.py +++ b/kombu/transport/pyamqp.py @@ -11,10 +11,8 @@ pure python amqp transport. from __future__ import absolute_import import amqp -import socket from kombu.exceptions import StdChannelError -from kombu.utils.encoding import str_to_bytes from kombu.utils.amq_manager import get_manager from . import base