]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - hash.py
fixed 2.1 incompatibility
[quix0rs-apt-p2p.git] / hash.py
diff --git a/hash.py b/hash.py
index 90343e0ad3ecfbcfc868e5e8981ebd57102aaf5d..5f70c9bc546f6b66e249deb36d6dede13d142aa8 100644 (file)
--- a/hash.py
+++ b/hash.py
@@ -73,7 +73,7 @@ class Intify(unittest.TestCase):
 
 class Disantance(unittest.TestCase):
     known = [
-           (("\0" * 20, "\xff" * 20), 2**160 -1),
+           (("\0" * 20, "\xff" * 20), 2**160L -1),
            ((sha("foo").digest(), sha("foo").digest()), 0),
            ((sha("bar").digest(), sha("bar").digest()), 0)
            ]