From: aaronsw Date: Thu, 28 Nov 2002 19:37:46 +0000 (+0000) Subject: fixed buglet X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2a6434b3cdac57289514a270d846e64261504bc7;p=quix0rs-apt-p2p.git fixed buglet --- 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: