summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-09-22 03:44:27 +0000
committerZac Medico <zmedico@gentoo.org>2009-09-22 03:44:27 +0000
commitd08d34e54a2c691ea56a4d25089e5cdb91eede93 (patch)
tree7fe005db5c6afca513e2a1f25454d93375203559 /pym
parent9f9f51a5e321da65e32277dcdf9f943f157bd8c5 (diff)
downloadportage-d08d34e54a2c691ea56a4d25089e5cdb91eede93.tar.gz
portage-d08d34e54a2c691ea56a4d25089e5cdb91eede93.tar.bz2
portage-d08d34e54a2c691ea56a4d25089e5cdb91eede93.zip
Fix 'RuntimeError: dictionary changed size during iteration' in
bindbapi.aux_update() with py3k. svn path=/main/trunk/; revision=14373
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/bintree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index 818dba9cf..79a6e5401 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -122,7 +122,7 @@ class bindbapi(fakedbapi):
encoding=_encodings['repo.content'], errors='backslashreplace')
mydata[k] = v
- for k, v in mydata.items():
+ for k, v in list(mydata.items()):
if not v:
del mydata[k]
mytbz2.recompose_mem(portage.xpak.xpak_mem(mydata))