From 58cdc39cd514ef9d3f0cd29a63d9d38566eca98c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 7 Dec 2009 02:00:47 +0000 Subject: [PATCH] Fix possibly unsafe modification of list during iteration inside update_config_files(). (trunk r14951) svn path=/main/branches/2.1.7/; revision=14952 --- pym/portage/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/update.py b/pym/portage/update.py index af0fd2f42..3df7b08f3 100644 --- a/pym/portage/update.py +++ b/pym/portage/update.py @@ -206,7 +206,7 @@ def update_config_files(config_root, protect, protect_mask, update_iter): encoding=_encodings['fs'], errors='strict') except UnicodeDecodeError: continue - for y_enc in dirs: + for y_enc in list(dirs): try: y = _unicode_decode(y_enc, encoding=_encodings['fs'], errors='strict') -- 2.26.2