bumped version to 0.5
This commit is contained in:
parent
30dd82082c
commit
89f04cf558
@ -1,5 +1,5 @@
|
||||
"""
|
||||
Kademlia is a Python implementation of the Kademlia protocol for `Twisted <http://twistedmatrix.com>`_.
|
||||
"""
|
||||
version_info = (0, 4)
|
||||
version_info = (0, 5)
|
||||
version = '.'.join(map(str, version_info))
|
||||
|
@ -94,7 +94,7 @@ class NodeHeap(object):
|
||||
nodes = [nodes]
|
||||
|
||||
for node in nodes:
|
||||
if node not in self:
|
||||
if node not in self:
|
||||
distance = self.node.distanceTo(node)
|
||||
heapq.heappush(self.heap, (distance, node))
|
||||
|
||||
@ -109,7 +109,7 @@ class NodeHeap(object):
|
||||
for distance, n in self.heap:
|
||||
if node.id == n.id:
|
||||
return True
|
||||
return False
|
||||
return False
|
||||
|
||||
def getUncontacted(self):
|
||||
return [n for n in self if n.id not in self.contacted]
|
||||
|
Loading…
Reference in New Issue
Block a user