bumped version to 0.5

This commit is contained in:
Brian Muller 2015-06-27 15:11:55 -04:00
parent 30dd82082c
commit 89f04cf558
2 changed files with 3 additions and 3 deletions

View File

@ -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))

View File

@ -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]