]> git.mxchange.org Git - quix0rs-apt-p2p.git/commitdiff
fixed buglet
authoraaronsw <aaronsw>
Thu, 28 Nov 2002 19:37:46 +0000 (19:37 +0000)
committeraaronsw <aaronsw>
Thu, 28 Nov 2002 19:37:46 +0000 (19:37 +0000)
ktable.py

index 601afe69a11a419dfc35f8daa7a79a451feaf51b..5a906fa235b2ed624545cef2b93367eb6245addd 100644 (file)
--- 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: