summaryrefslogtreecommitdiff
path: root/examples/simple_eventlet_receive.py
diff options
context:
space:
mode:
authorAsk Solem <ask@celeryproject.org>2013-09-10 17:26:12 +0100
committerAsk Solem <ask@celeryproject.org>2013-09-10 17:26:12 +0100
commit554bddd2af198680b6e2ea5a4aa3448850e04c07 (patch)
treec7bc069e196dc90aedf1bff31d8d1286f790b8da /examples/simple_eventlet_receive.py
parent2ff6f89c48143ae9101df91fe58cc61375aaca0b (diff)
downloadkombu-554bddd2af198680b6e2ea5a4aa3448850e04c07.tar.gz
Py3 fixes
Diffstat (limited to 'examples/simple_eventlet_receive.py')
-rw-r--r--examples/simple_eventlet_receive.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/simple_eventlet_receive.py b/examples/simple_eventlet_receive.py
index d70126df..f353d1c0 100644
--- a/examples/simple_eventlet_receive.py
+++ b/examples/simple_eventlet_receive.py
@@ -8,8 +8,6 @@ message sent.
"""
import eventlet
-from Queue import Empty
-
from kombu import Connection
eventlet.monkey_patch()
@@ -32,7 +30,7 @@ def wait_many(timeout=1):
while True:
try:
message = queue.get(block=False, timeout=timeout)
- except Empty:
+ except queue.Empty:
break
else:
message.ack()