projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d4942e
)
For consistency, make sure that a normal iterator is always returned
author
Zac Medico
<zmedico@gentoo.org>
Fri, 30 May 2008 20:46:05 +0000
(20:46 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 30 May 2008 20:46:05 +0000
(20:46 -0000)
from dbapi._iter_match() (and never a list). This way the caller can
be sure that the returned object has a next() method.
svn path=/main/trunk/; revision=10507
pym/portage/dbapi/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/__init__.py
b/pym/portage/dbapi/__init__.py
index 064309cf8ccbfcedfcc8a92c131873a10cd3f880..ba37c867e2ca2cec6fd0bda32440d4b2072f63fe 100644
(file)
--- a/
pym/portage/dbapi/__init__.py
+++ b/
pym/portage/dbapi/__init__.py
@@
-126,7
+126,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)
if atom.use: