From 74d1ad697e82601bf8aa44b0d24121017071e655 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 22 Sep 2009 21:26:20 +0000 Subject: Replace dict.keys() usage with __iter__(), since it behaves identically in both python 2.x and 3.x. svn path=/main/trunk/; revision=14384 --- pym/portage/dbapi/virtual.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym/portage/dbapi/virtual.py') 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 -- cgit v1.2.3-1-g7c22