python-modernize -f lib2to3.fixes.fix_numliterals

This commit is contained in:
Tomas Kopecek 2017-05-03 11:38:27 +02:00
parent e071f793ee
commit f6e5bd11f3
6 changed files with 10 additions and 10 deletions

View file

@ -466,12 +466,12 @@ class adler32_constructor(object):
#mimicing the hashlib constructors
def __init__(self, arg=''):
self._value = adler32(arg) & 0xffffffffL
self._value = adler32(arg) & 0xffffffff
#the bitwise and works around a bug in some versions of python
#see: https://bugs.python.org/issue1202
def update(self, arg):
self._value = adler32(arg, self._value) & 0xffffffffL
self._value = adler32(arg, self._value) & 0xffffffff
def digest(self):
return self._value