diff options
Diffstat (limited to 'pym/portage/checksum.py')
-rw-r--r-- | pym/portage/checksum.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage/checksum.py b/pym/portage/checksum.py index edbd515ae..fa00247ab 100644 --- a/pym/portage/checksum.py +++ b/pym/portage/checksum.py @@ -30,14 +30,14 @@ def _generate_hash_function(hashtype, hashobject, origin="unknown"): blocksize = HASHING_BLOCKSIZE data = f.read(blocksize) size = 0L - sum = hashobject() + checksum = hashobject() while data: - sum.update(data) + checksum.update(data) size = size + len(data) data = f.read(blocksize) f.close() - return (sum.hexdigest(), size) + return (checksum.hexdigest(), size) hashfunc_map[hashtype] = pyhash hashorigin_map[hashtype] = origin return pyhash |