diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-05-30 20:47:42 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-05-30 20:47:42 +0000 |
commit | 0d50616cd1628b380616f96609234f76feeef428 (patch) | |
tree | d6b0dfb2195913d55ce972c237b9d70bfec4deb0 /pym | |
parent | 05f15f0d6e34cb9a47a3cb3ec44453958f1a3818 (diff) | |
download | portage-0d50616cd1628b380616f96609234f76feeef428.tar.gz portage-0d50616cd1628b380616f96609234f76feeef428.tar.bz2 portage-0d50616cd1628b380616f96609234f76feeef428.zip |
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)
svn path=/main/branches/2.1.2/; revision=10508
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py index 557d27880..eb6882f47 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -6331,7 +6331,7 @@ class dbapi(object): 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 |