From b7b625e0d8f7db96b53a8f3bc4b47557ce67d6de Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Fri, 28 Jan 2011 11:49:10 +0100 Subject: [PATCH] eventio.epoll: Don't convert None to float --- kombu/utils/eventio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kombu/utils/eventio.py b/kombu/utils/eventio.py index 2456e79d..d1d6813c 100644 --- a/kombu/utils/eventio.py +++ b/kombu/utils/eventio.py @@ -25,7 +25,7 @@ class _epoll(object): pass def poll(self, timeout): - return self._epoll.poll(timeout / 1000.0) + return self._epoll.poll(timeout and timeout / 1000.0) class _kqueue(object):