From d08d34e54a2c691ea56a4d25089e5cdb91eede93 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 22 Sep 2009 03:44:27 +0000 Subject: [PATCH] Fix 'RuntimeError: dictionary changed size during iteration' in bindbapi.aux_update() with py3k. svn path=/main/trunk/; revision=14373 --- pym/portage/dbapi/bintree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.26.2