Commit b0349311 authored by Denis Bilenko's avatar Denis Bilenko

queue: fix another typo in put() method

parent 3ee553d4
......@@ -45,7 +45,7 @@ class Queue(object):
else:
if timeout < 0:
raise ValueError("'timeout' must be a positive number")
with timeout(timeout, Full):
with gevent.timeout(timeout, Full):
# XXX even if timeout fires, item ends up in a queue anyway, because
# Channel.send is not transactional
return self.q.send(item)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment