From 5da85d4f2f2c6f2603852ab03dd2db98182000f4 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 9 Apr 2003 18:35:59 +0000 Subject: [PATCH] Forgot to actually enqueue in MaxLengthQueue.enqueue. --- src/fix.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fix.py b/src/fix.py index a1b031183..ac7f2ec58 100644 --- a/src/fix.py +++ b/src/fix.py @@ -232,9 +232,11 @@ class MaxLengthQueue(queue): queue.__setstate__(self, q) def enqueue(self, elt): + queue.enqueue(self, elt) if len(self) > self.length: self.dequeue() + class IterableMap(object): """Define .iteritems() in a class and subclass this to get the other iters. """