summaryrefslogtreecommitdiffstats
path: root/bin/repoman
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-09-22 20:03:10 +0000
committerZac Medico <zmedico@gentoo.org>2009-09-22 20:03:10 +0000
commit38e5d658da8cd06b72e4e802f9e831a2143307d1 (patch)
treead7bf8ff4ccdd8ab7584e725f17abffb3874b87f /bin/repoman
parent26736fa28cf9a37f4ea0cb9ee73f4b0c6a240d28 (diff)
downloadportage-38e5d658da8cd06b72e4e802f9e831a2143307d1.tar.gz
portage-38e5d658da8cd06b72e4e802f9e831a2143307d1.tar.bz2
portage-38e5d658da8cd06b72e4e802f9e831a2143307d1.zip
Replace doct.keys() usage with __iter__(), since it behaves identically in
both python 2.x and 3.x. svn path=/main/trunk/; revision=14379
Diffstat (limited to 'bin/repoman')
-rwxr-xr-xbin/repoman8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/repoman b/bin/repoman
index 950226206..edec13501 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -153,7 +153,7 @@ def ParseArgs(args, qahelp):
'scan' : 'Scan directory tree for QA issues'
}
- mode_keys = list(modes.keys())
+ mode_keys = list(modes)
mode_keys.sort()
parser = RepomanOptionParser(formatter=RepomanHelpFormatter(), usage="%prog [options] [mode]")
@@ -198,7 +198,7 @@ def ParseArgs(args, qahelp):
parser.add_option('--without-mask', dest='without_mask', action='store_true',
default=False, help='behave as if no package.mask entries exist (not allowed with commit mode)')
- parser.add_option('--mode', type='choice', dest='mode', choices=list(modes.keys()),
+ parser.add_option('--mode', type='choice', dest='mode', choices=list(modes),
help='specify which mode repoman will run in (default=full)')
parser.on_tail("\n " + green("Modes".ljust(20) + " Description\n"))
@@ -208,7 +208,7 @@ def ParseArgs(args, qahelp):
parser.on_tail("\n " + green("QA keyword".ljust(20) + " Description\n"))
- sorted_qa = list(qahelp.keys())
+ sorted_qa = list(qahelp)
sorted_qa.sort()
for k in sorted_qa:
parser.on_tail(" %s %s\n" % (k.ljust(20), qahelp[k]))
@@ -330,7 +330,7 @@ qahelp={
"upstream.workaround":"The ebuild works around an upstream bug, an upstream bug should be filed and tracked in bugs.gentoo.org"
}
-qacats = list(qahelp.keys())
+qacats = list(qahelp)
qacats.sort()
qawarnings = set((