Fix 'RuntimeError: dictionary changed size during iteration' in
authorZac Medico <zmedico@gentoo.org>
Tue, 22 Sep 2009 03:44:27 +0000 (03:44 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 22 Sep 2009 03:44:27 +0000 (03:44 -0000)
bindbapi.aux_update() with py3k.

svn path=/main/trunk/; revision=14373

pym/portage/dbapi/bintree.py

index 818dba9cfeb65ed00a0d287542053b1c9e9a62bd..79a6e5401f175a2855b24a0994456c5140d3c8df 100644 (file)
@@ -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))