From 3ce239a8b5e1a7b5cf000931ca7650b02bc92cf8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 22 Sep 2009 03:57:58 +0000 Subject: Fix another potential 'RuntimeError: dictionary changed size during iteration' exception in _owners_db._populate() for py3k. svn path=/main/trunk/; revision=14375 --- pym/portage/dbapi/vartree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 8d0256c12..be69aab09 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -1515,7 +1515,7 @@ class vardbapi(dbapi): base_names = self._vardb._aux_cache["owners"]["base_names"] # Take inventory of all cached package hashes. - for name, hash_values in base_names.items(): + for name, hash_values in list(base_names.items()): if not isinstance(hash_values, dict): del base_names[name] continue -- cgit v1.2.3-1-g7c22