diff options
author | Ask Solem <ask@celeryproject.org> | 2011-04-05 16:13:54 +0200 |
---|---|---|
committer | Ask Solem <ask@celeryproject.org> | 2011-04-05 16:15:41 +0200 |
commit | 39e4ec68c7ba21cff7e715a31c13084517614cb5 (patch) | |
tree | 0024d1755277df4e1d1a5a42bb6f384485007c79 | |
parent | ea6fed6efe07dfaf15fe8b68edeaa3ef5d296efc (diff) | |
download | kombu-1.1.1.tar.gz |
Queue._init needs to set self.maxsize on Python <= 2.5v1.1.1
-rw-r--r-- | Changelog | 5 | ||||
-rw-r--r-- | kombu/utils/compat.py | 1 |
2 files changed, 4 insertions, 2 deletions
@@ -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) |