Skip to content

Commit

Permalink
Import SimpleQueue/SimpleBuffer lazily
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Jan 27, 2011
1 parent b9a0b59 commit 9c17749
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kombu/connection.py
Expand Up @@ -16,7 +16,6 @@

from kombu import exceptions
from kombu.transport import get_transport_cls
from kombu.simple import SimpleQueue, SimpleBuffer
from kombu.utils import retry_over_time
from kombu.utils.compat import OrderedDict
from kombu.utils.functional import wraps
Expand Down Expand Up @@ -332,6 +331,8 @@ def SimpleQueue(self, name, no_ack=None, queue_opts=None,
object.
"""
from kombu.simple import SimpleQueue

channel_autoclose = False
if channel is None:
channel = self.channel()
Expand All @@ -350,6 +351,8 @@ def SimpleBuffer(self, name, no_ack=None, queue_opts=None,
and acknowledgements are disabled (``no_ack``).
"""
from kombu.simple import SimpleBuffer

channel_autoclose = False
if channel is None:
channel = self.channel()
Expand Down

0 comments on commit 9c17749

Please sign in to comment.