public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r14952 - main/branches/2.1.7/pym/portage
@ 2009-12-07  2:00 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-12-07  2:00 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2009-12-07 02:00:47 +0000 (Mon, 07 Dec 2009)
New Revision: 14952

Modified:
   main/branches/2.1.7/pym/portage/update.py
Log:
Fix possibly unsafe modification of list during iteration inside
update_config_files(). (trunk r14951)

Modified: main/branches/2.1.7/pym/portage/update.py
===================================================================
--- main/branches/2.1.7/pym/portage/update.py	2009-12-07 01:59:16 UTC (rev 14951)
+++ main/branches/2.1.7/pym/portage/update.py	2009-12-07 02:00:47 UTC (rev 14952)
@@ -206,7 +206,7 @@
 						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')




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-07  2:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-07  2:00 [gentoo-commits] portage r14952 - main/branches/2.1.7/pym/portage Zac Medico (zmedico)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox