Mercurial > ~darius > hgwebdir.cgi > adslstats
diff mysrp.py @ 32:1af6865189ce
Update to work with Python 3.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Sat, 14 Nov 2020 14:54:05 +1030 |
parents | a53f90508a06 |
children |
line wrap: on
line diff
--- a/mysrp.py Sat Nov 14 14:10:50 2020 +1030 +++ b/mysrp.py Sat Nov 14 14:54:05 2020 +1030 @@ -164,7 +164,7 @@ if s3 and isinstance(s3, six.integer_types): s3 = long_to_bytes(s3) s = s1 + s2 + s3 - return long(hash_class(s).hexdigest(), 16) + return int(hash_class(s).hexdigest(), 16) def H( hash_class, *args, **kwargs ):