X-Git-Url: https://git.mxchange.org/?p=quix0rs-apt-p2p.git;a=blobdiff_plain;f=apt_p2p_Khashmir%2Fnode.py;h=eff754b318cc5690c41f10470ff678f1a7b28f14;hp=e05e14157a576f9a68245ffb44aceedc40d72369;hb=7c0a9c5c4633e27132daf8d5aa59762933a85654;hpb=ca85dd289ae87b85f0841463284dacff95420bd7 diff --git a/apt_p2p_Khashmir/node.py b/apt_p2p_Khashmir/node.py index e05e141..eff754b 100644 --- a/apt_p2p_Khashmir/node.py +++ b/apt_p2p_Khashmir/node.py @@ -139,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):