1 |
Author: zmedico |
2 |
Date: 2008-05-30 20:46:05 +0000 (Fri, 30 May 2008) |
3 |
New Revision: 10507 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/portage/dbapi/__init__.py |
7 |
Log: |
8 |
For consistency, make sure that a normal iterator is always returned |
9 |
from dbapi._iter_match() (and never a list). This way the caller can |
10 |
be sure that the returned object has a next() method. |
11 |
|
12 |
|
13 |
Modified: main/trunk/pym/portage/dbapi/__init__.py |
14 |
=================================================================== |
15 |
--- main/trunk/pym/portage/dbapi/__init__.py 2008-05-30 20:24:08 UTC (rev 10506) |
16 |
+++ main/trunk/pym/portage/dbapi/__init__.py 2008-05-30 20:46:05 UTC (rev 10507) |
17 |
@@ -126,7 +126,7 @@ |
18 |
self.cp_list(mydep.cp, use_cache=use_cache))) |
19 |
|
20 |
def _iter_match(self, atom, cpv_iter): |
21 |
- cpv_iter = match_from_list(atom, cpv_iter) |
22 |
+ cpv_iter = iter(match_from_list(atom, cpv_iter)) |
23 |
if atom.slot: |
24 |
cpv_iter = self._iter_match_slot(atom, cpv_iter) |
25 |
if atom.use: |
26 |
|
27 |
-- |
28 |
gentoo-commits@l.g.o mailing list |