diff options
| author | Marko Kreen | 2010-11-24 20:18:22 +0000 |
|---|---|---|
| committer | Marko Kreen | 2010-11-24 20:18:22 +0000 |
| commit | b3b28dc1432a7032cd5736d81fcf62eb98e348d0 (patch) | |
| tree | 37bc39a96244e99f4e5b03ed48bfae17a85bf104 /python | |
| parent | 82bc07908ed7c9eef4e9eecfb386c2f0f7fc699a (diff) | |
pgq.BatchWalker: relaxed __len__(), ignore out-of-order calls
Diffstat (limited to 'python')
| -rw-r--r-- | python/pgq/consumer.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/python/pgq/consumer.py b/python/pgq/consumer.py index 20b83fe6..23eaa4f9 100644 --- a/python/pgq/consumer.py +++ b/python/pgq/consumer.py @@ -81,9 +81,6 @@ class _BatchWalker(object): self.fetch_status = 2 def __len__(self): - if self.fetch_status != 2: - return -1 - #raise Exception("BatchWalker: len() for incomplete result. (%d)" % self.fetch_status) return self.length def tag_event_done(self, event): |
