summaryrefslogtreecommitdiffstats
path: root/pym/portage_locks.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-22 02:34:17 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-22 02:34:17 +0000
commit05e710dc0187255e2bd7e8ab7480e3ce1ce6fde4 (patch)
treeec9ccd64e22b5d7fe5ed59d015d6a8c88301d755 /pym/portage_locks.py
parent9568c3258f7349ec24a76d015d82c762ac7fb2d7 (diff)
downloadportage-05e710dc0187255e2bd7e8ab7480e3ce1ce6fde4.tar.gz
portage-05e710dc0187255e2bd7e8ab7480e3ce1ce6fde4.tar.bz2
portage-05e710dc0187255e2bd7e8ab7480e3ce1ce6fde4.zip
Remove more unnecessary list generation. (trunk r6913)
svn path=/main/branches/2.1.2/; revision=6932
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 8358b3063..9b17c60e3 100644
--- a/pym/portage_locks.py
+++ b/pym/portage_locks.py
@@ -288,13 +288,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: