summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Builder.py
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2010-04-23 02:58:45 (GMT)
committerGreg Noel <GregNoel@tigris.org>2010-04-23 02:58:45 (GMT)
commit591b78f0f314f11192fdf13d3baa66f81b160e44 (patch)
treea8babbca715c6770a4f2d0cf59ba5bdc16a53b71 /src/engine/SCons/Builder.py
parentc86e4726d30ec4d7086f7fb002e960a2dc570490 (diff)
downloadSCons-591b78f0f314f11192fdf13d3baa66f81b160e44.zip
SCons-591b78f0f314f11192fdf13d3baa66f81b160e44.tar.gz
SCons-591b78f0f314f11192fdf13d3baa66f81b160e44.tar.bz2
http://scons.tigris.org/issues/show_bug.cgi?id=2317
Apply the refactorings from the 'dict' fixer, less occurrences that were manually audited to be safe. Also pick up changes in bin/sfsum, a Python file that was not being scanned before.
Diffstat (limited to 'src/engine/SCons/Builder.py')
-rw-r--r--src/engine/SCons/Builder.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/SCons/Builder.py b/src/engine/SCons/Builder.py
index 6317a44..2e068c2 100644
--- a/src/engine/SCons/Builder.py
+++ b/src/engine/SCons/Builder.py
@@ -138,7 +138,7 @@ class DictCmdGenerator(SCons.Util.Selector):
self.source_ext_match = source_ext_match
def src_suffixes(self):
- return self.keys()
+ return list(self.keys())
def add_action(self, suffix, action):
"""Add a suffix-action pair to the mapping.
@@ -173,7 +173,7 @@ class DictCmdGenerator(SCons.Util.Selector):
raise UserError("Ambiguous suffixes after environment substitution: %s == %s == %s" % (e.args[0], e.args[1], e.args[2]))
if ret is None:
raise UserError("While building `%s' from `%s': Don't know how to build from a source file with suffix `%s'. Expected a suffix in this list: %s." % \
- (repr(list(map(str, target))), repr(list(map(str, source))), ext, repr(self.keys())))
+ (repr(list(map(str, target))), repr(list(map(str, source))), ext, repr(list(self.keys()))))
return ret
class CallableSelector(SCons.Util.Selector):
@@ -440,8 +440,8 @@ class BuilderBase:
name (if there is one) or the name of the class (by default)."""
try:
- index = env['BUILDERS'].values().index(self)
- return env['BUILDERS'].keys()[index]
+ index = list(env['BUILDERS'].values()).index(self)
+ return list(env['BUILDERS'].keys())[index]
except (AttributeError, KeyError, TypeError, ValueError):
try:
return self.name