X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=apt_p2p_Khashmir%2Fnode.py;h=eff754b318cc5690c41f10470ff678f1a7b28f14;hb=0dc8101b31ff7509bd4ae0da8ecd4ce1e99e53c4;hp=a5f40eb0c4362e7f219a7c67e0de07915af6286d;hpb=2f3c17ab7b51cbad0abf11fa66f6cafcb5a41c5e;p=quix0rs-apt-p2p.git diff --git a/apt_p2p_Khashmir/node.py b/apt_p2p_Khashmir/node.py index a5f40eb..eff754b 100644 --- a/apt_p2p_Khashmir/node.py +++ b/apt_p2p_Khashmir/node.py @@ -1,5 +1,3 @@ -## Copyright 2002-2003 Andrew Loewenstern, All Rights Reserved -# see LICENSE.txt for license information """Represents a node in the DHT. @@ -141,6 +139,8 @@ class Node: if type(a) == InstanceType: a = a.num return self.num != a + def __hash__(self): + return hash(self.num) class TestNode(unittest.TestCase):