Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r10508 - main/branches/2.1.2/pym
Date: Fri, 30 May 2008 20:47:49
Message-Id: E1K2BVn-0003uY-47@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-05-30 20:47:42 +0000 (Fri, 30 May 2008)
3 New Revision: 10508
4
5 Modified:
6 main/branches/2.1.2/pym/portage.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. (trunk r10507)
11
12
13 Modified: main/branches/2.1.2/pym/portage.py
14 ===================================================================
15 --- main/branches/2.1.2/pym/portage.py 2008-05-30 20:46:05 UTC (rev 10507)
16 +++ main/branches/2.1.2/pym/portage.py 2008-05-30 20:47:42 UTC (rev 10508)
17 @@ -6331,7 +6331,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 return cpv_iter
26
27 --
28 gentoo-commits@l.g.o mailing list