summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsk Solem <ask@celeryproject.org>2011-04-05 16:13:54 +0200
committerAsk Solem <ask@celeryproject.org>2011-04-05 16:15:41 +0200
commit39e4ec68c7ba21cff7e715a31c13084517614cb5 (patch)
tree0024d1755277df4e1d1a5a42bb6f384485007c79
parentea6fed6efe07dfaf15fe8b68edeaa3ef5d296efc (diff)
downloadkombu-1.1.1.tar.gz
Queue._init needs to set self.maxsize on Python <= 2.5v1.1.1
-rw-r--r--Changelog5
-rw-r--r--kombu/utils/compat.py1
2 files changed, 4 insertions, 2 deletions
diff --git a/Changelog b/Changelog
index 29079023..a29e4b11 100644
--- a/Changelog
+++ b/Changelog
@@ -8,8 +8,9 @@
=====
:release-date: 2011-04-05 15:51 P.M CEST
-* 1.1.0 broke Python 2.4 and 2.5 compatibility by using
- LifoQueue.
+* 1.1.0 started using ``Queue.LifoQueue`` which is only available
+ in Python 2.6+ (Issue #33). We now ship with our own LifoQueue.
+
.. _version-1.1.0:
diff --git a/kombu/utils/compat.py b/kombu/utils/compat.py
index e9251b15..f685dc51 100644
--- a/kombu/utils/compat.py
+++ b/kombu/utils/compat.py
@@ -253,6 +253,7 @@ class LifoQueue(Queue):
def _init(self, maxsize):
self.queue = []
+ self.maxsize = maxsize
def _qsize(self, len=len):
return len(self.queue)