From 2a6434b3cdac57289514a270d846e64261504bc7 Mon Sep 17 00:00:00 2001 From: aaronsw Date: Thu, 28 Nov 2002 19:37:46 +0000 Subject: [PATCH] fixed buglet --- ktable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ktable.py b/ktable.py index 601afe6..5a906fa 100644 --- a/ktable.py +++ b/ktable.py @@ -40,7 +40,7 @@ class KTable: i = self._bucketIndexForInt(int) # if this node is already in our table then return it - if int in self.buckets[i].l.index(int): return [int] + if int in self.buckets[i].l: return [int] nodes = nodes + self.buckets[i].l if len(nodes) < K: -- 2.39.5