summaryrefslogtreecommitdiffstats
path: root/pym/portage/dbapi/virtual.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-09-22 21:26:20 +0000
committerZac Medico <zmedico@gentoo.org>2009-09-22 21:26:20 +0000
commit74d1ad697e82601bf8aa44b0d24121017071e655 (patch)
tree53fa1c90c9599691ed6aec0bf231e72833b07b4a /pym/portage/dbapi/virtual.py
parentccd74312f34433350a3d5b7e05fd3f154ca1b582 (diff)
downloadportage-74d1ad697e82601bf8aa44b0d24121017071e655.tar.gz
portage-74d1ad697e82601bf8aa44b0d24121017071e655.tar.bz2
portage-74d1ad697e82601bf8aa44b0d24121017071e655.zip
Replace dict.keys() usage with __iter__(), since it behaves identically in
both python 2.x and 3.x. svn path=/main/trunk/; revision=14384
Diffstat (limited to 'pym/portage/dbapi/virtual.py')
-rw-r--r--pym/portage/dbapi/virtual.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/virtual.py b/pym/portage/dbapi/virtual.py
index 5d1e933a1..6c567a072 100644
--- a/pym/portage/dbapi/virtual.py
+++ b/pym/portage/dbapi/virtual.py
@@ -59,7 +59,7 @@ class fakedbapi(dbapi):
return list(self.cpdict)
def cpv_all(self):
- return list(self.cpvdict.keys())
+ return list(self.cpvdict)
def cpv_inject(self, mycpv, metadata=None):
"""Adds a cpv to the list of available packages. See the