summaryrefslogtreecommitdiffstats
path: root/pym/portage/checksum.py
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-07-22 09:55:50 +0000
committerAlec Warner <antarus@gentoo.org>2007-07-22 09:55:50 +0000
commit6f4ce3e8fa339a435e80798d9ce1cac4a2a0c83f (patch)
treec2ec7b5d5c2717a7458f9189c1b11761cc5d98c1 /pym/portage/checksum.py
parentb143afc2a5b8e4ababd6ab9ce57d5a69d24dc12d (diff)
downloadportage-6f4ce3e8fa339a435e80798d9ce1cac4a2a0c83f.tar.gz
portage-6f4ce3e8fa339a435e80798d9ce1cac4a2a0c83f.tar.bz2
portage-6f4ce3e8fa339a435e80798d9ce1cac4a2a0c83f.zip
Run pychecker over everything, fix obvious thing slike modules not in use, variables not being used, or global exceptions not being deleted. Also fix imports for style (1 per line)
svn path=/main/trunk/; revision=7354
Diffstat (limited to 'pym/portage/checksum.py')
-rw-r--r--pym/portage/checksum.py6
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