summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-22 08:42:19 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-22 08:42:19 +0000
commit55e481e91abdb81e8f50ecd0582eccc1009ed096 (patch)
tree92d05df881c2993b16a1c8d883b9b6faf46dafc2
parentfd09d707a3d8d22b91b8c279e5a0b2e4d3d659ae (diff)
downloadportage-55e481e91abdb81e8f50ecd0582eccc1009ed096.tar.gz
portage-55e481e91abdb81e8f50ecd0582eccc1009ed096.tar.bz2
portage-55e481e91abdb81e8f50ecd0582eccc1009ed096.zip
Remove pointless usage of xrange(). Thanks to Douglass Anderson
<dja@gendja.com> for this patch. svn path=/main/trunk/; revision=13142
-rw-r--r--pym/portage/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index dfcff6caf..c09fd552b 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -1358,9 +1358,9 @@ class config(object):
rawpkeywords = [grabdict_package(
os.path.join(x, "package.keywords"), recursive=1) \
for x in self.profiles]
- for i in xrange(len(self.profiles)):
+ for pkeyworddict in rawpkeywords:
cpdict = {}
- for k, v in rawpkeywords[i].iteritems():
+ for k, v in pkeyworddict.iteritems():
cpdict.setdefault(dep_getkey(k), {})[k] = v
self._pkeywords_list.append(cpdict)