public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r10508 - main/branches/2.1.2/pym
@ 2008-05-30 20:47 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2008-05-30 20:47 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2008-05-30 20:47:42 +0000 (Fri, 30 May 2008)
New Revision: 10508

Modified:
   main/branches/2.1.2/pym/portage.py
Log:
For consistency, make sure that a normal iterator is always returned
from dbapi._iter_match() (and never a list). This way the caller can
be sure that the returned object has a next() method. (trunk r10507)


Modified: main/branches/2.1.2/pym/portage.py
===================================================================
--- main/branches/2.1.2/pym/portage.py	2008-05-30 20:46:05 UTC (rev 10507)
+++ main/branches/2.1.2/pym/portage.py	2008-05-30 20:47:42 UTC (rev 10508)
@@ -6331,7 +6331,7 @@
 			self.cp_list(mydep.cp, use_cache=use_cache)))
 
 	def _iter_match(self, atom, cpv_iter):
-		cpv_iter = match_from_list(atom, cpv_iter)
+		cpv_iter = iter(match_from_list(atom, cpv_iter))
 		if atom.slot:
 			cpv_iter = self._iter_match_slot(atom, cpv_iter)
 		return cpv_iter

-- 
gentoo-commits@lists.gentoo.org mailing list



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

only message in thread, other threads:[~2008-05-30 20:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-30 20:47 [gentoo-commits] portage r10508 - main/branches/2.1.2/pym 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