summaryrefslogtreecommitdiffstats
path: root/pym/portage/locks.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-21 12:01:43 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-21 12:01:43 +0000
commit766862042c7da01a8aa0a8f5ebd259fe72e1fd57 (patch)
treed74a4e7f8373243cb5fe08e28f5d871e713a8759 /pym/portage/locks.py
parentc081a2229d3873c9d61cc1b2d994adf01de8a6a8 (diff)
downloadportage-766862042c7da01a8aa0a8f5ebd259fe72e1fd57.tar.gz
portage-766862042c7da01a8aa0a8f5ebd259fe72e1fd57.tar.bz2
portage-766862042c7da01a8aa0a8f5ebd259fe72e1fd57.zip
Remove more unnecessary list generation.
svn path=/main/trunk/; revision=6913
Diffstat (limited to 'pym/portage/locks.py')
-rw-r--r--pym/portage/locks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/locks.py b/pym/portage/locks.py
index 2575a978b..19c7352b7 100644
--- a/pym/portage/locks.py
+++ b/pym/portage/locks.py
@@ -284,13 +284,13 @@ def hardlock_cleanup(path, remove_all_locks=False):
results.append("Found %(count)s locks" % {"count":mycount})
- for x in mylist.keys():
+ for x in mylist:
if mylist[x].has_key(myhost) or remove_all_locks:
mylockname = hardlock_name(path+"/"+x)
if hardlink_is_mine(mylockname, path+"/"+x) or \
not os.path.exists(path+"/"+x) or \
remove_all_locks:
- for y in mylist[x].keys():
+ for y in mylist[x]:
for z in mylist[x][y]:
filename = path+"/"+x+".hardlock-"+y+"-"+z
if filename == mylockname: