]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - apt_p2p_Khashmir/node.py
Add $remote_fs dependency in init.d LSB header (Closes: #480645)
[quix0rs-apt-p2p.git] / apt_p2p_Khashmir / node.py
index a5f40eb0c4362e7f219a7c67e0de07915af6286d..eff754b318cc5690c41f10470ff678f1a7b28f14 100644 (file)
@@ -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):