# HG changeset patch # User Franz Glasner # Date 1644336795 -3600 # Node ID 0fa2067bedb83b28153aab45db21c541dad6eced # Parent 6e91c530545fec4b511f21990cb86da1364bd662 Common initialization is now common when computing the hashes from a mmap diff -r 6e91c530545f -r 0fa2067bedb8 shasum.py --- a/shasum.py Tue Feb 08 17:09:52 2022 +0100 +++ b/shasum.py Tue Feb 08 17:13:15 2022 +0100 @@ -484,10 +484,9 @@ # mmap if filesize < MAP_CHUNK_SIZE: mapsize = filesize - mapoffset = 0 else: mapsize = MAP_CHUNK_SIZE - mapoffset = 0 + mapoffset = 0 rest = filesize while rest > 0: m = mmap.mmap(fd,