* [gentoo-commits] portage r10507 - main/trunk/pym/portage/dbapi
@ 2008-05-30 20:46 Zac Medico (zmedico)
0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2008-05-30 20:46 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2008-05-30 20:46:05 +0000 (Fri, 30 May 2008)
New Revision: 10507
Modified:
main/trunk/pym/portage/dbapi/__init__.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.
Modified: main/trunk/pym/portage/dbapi/__init__.py
===================================================================
--- main/trunk/pym/portage/dbapi/__init__.py 2008-05-30 20:24:08 UTC (rev 10506)
+++ main/trunk/pym/portage/dbapi/__init__.py 2008-05-30 20:46:05 UTC (rev 10507)
@@ -126,7 +126,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)
if atom.use:
--
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:46 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:46 [gentoo-commits] portage r10507 - main/trunk/pym/portage/dbapi 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