From: Zac Medico Date: Mon, 23 Mar 2009 02:19:59 +0000 (-0000) Subject: Remove pointless usage of xrange(). Thanks to Douglass Anderson X-Git-Tag: v2.1.6.10~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d4269260e435deab7357c7cd9b23fbc467bc6e68;p=portage.git Remove pointless usage of xrange(). Thanks to Douglass Anderson for this patch. (trunk r13142) svn path=/main/branches/2.1.6/; revision=13159 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 4462e0b12..7ff3ea025 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)