summaryrefslogtreecommitdiffstats
path: root/bin/repoman
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-22 01:53:50 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-22 01:53:50 +0000
commitc0cfcc8a6eb2e4adff8eb3d3bb9f44d9b7124ccd (patch)
tree52cfa5cff4798cc05c2163976cd41bea3f678ddd /bin/repoman
parent337f4de4c1bfb38e02a9f2b5be05884e68299d01 (diff)
downloadportage-c0cfcc8a6eb2e4adff8eb3d3bb9f44d9b7124ccd.tar.gz
portage-c0cfcc8a6eb2e4adff8eb3d3bb9f44d9b7124ccd.tar.bz2
portage-c0cfcc8a6eb2e4adff8eb3d3bb9f44d9b7124ccd.zip
Remove lots of unnecessary list generation via dict.keys(). (trunk r6911)
svn path=/main/branches/2.1.2/; revision=6930
Diffstat (limited to 'bin/repoman')
-rwxr-xr-xbin/repoman6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/repoman b/bin/repoman
index f5ef34dca..a93965ff3 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -349,9 +349,9 @@ myoptions=[]
if len(sys.argv)>1:
x=1
while x < len(sys.argv):
- if sys.argv[x] in shortmodes.keys():
+ if sys.argv[x] in shortmodes:
sys.argv[x]=shortmodes[sys.argv[x]]
- elif sys.argv[x] in repoman_shortoptions.keys():
+ elif sys.argv[x] in repoman_shortoptions:
sys.argv[x] = repoman_shortoptions[sys.argv[x]]
if sys.argv[x] in modes:
if mymode is None:
@@ -1477,7 +1477,7 @@ def grouplist(mylist,seperator="/"):
xs=x.split(seperator)
if xs[0]==".":
xs=xs[1:]
- if xs[0] not in mygroups.keys():
+ if xs[0] not in mygroups:
mygroups[xs[0]]=[seperator.join(xs[1:])]
else:
mygroups[xs[0]]+=[seperator.join(xs[1:])]