summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-09-21 22:26:56 +0000
committerZac Medico <zmedico@gentoo.org>2009-09-21 22:26:56 +0000
commit7f3d199fee7f13cf8d907d77e0758e3af2153bd5 (patch)
tree9c5f1d747bdb4670d89cda12c90a666f8a999de0 /pym
parenta4f8398f6774c8839f9902550e432d96c92fafcc (diff)
downloadportage-7f3d199fee7f13cf8d907d77e0758e3af2153bd5.tar.gz
portage-7f3d199fee7f13cf8d907d77e0758e3af2153bd5.tar.bz2
portage-7f3d199fee7f13cf8d907d77e0758e3af2153bd5.zip
Fix 'RuntimeError: dictionary changed size during iteration' in
_owners_db._populate() with py3k. svn path=/main/trunk/; revision=14370
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/vartree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index 12dd15f1b..8d0256c12 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -1538,7 +1538,7 @@ class vardbapi(dbapi):
# Delete any stale cache.
stale_hashes = cached_hashes.difference(valid_pkg_hashes)
if stale_hashes:
- for base_name_hash, bucket in base_names.items():
+ for base_name_hash, bucket in list(base_names.items()):
for hash_value in stale_hashes.intersection(bucket):
del bucket[hash_value]
if not bucket: