summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2010-04-23 02:58:45 +0000
committerGreg Noel <GregNoel@tigris.org>2010-04-23 02:58:45 +0000
commitf7ac1212e72b65e2840b9b116b962e3872e30e8e (patch)
treea8babbca715c6770a4f2d0cf59ba5bdc16a53b71 /bin
parent19ae84b077893a395e60568dfa660f5f84e3e839 (diff)
downloadscons-f7ac1212e72b65e2840b9b116b962e3872e30e8e.tar.gz
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 'bin')
-rw-r--r--bin/SConsDoc.py2
-rw-r--r--bin/sfsum4
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/SConsDoc.py b/bin/SConsDoc.py
index 298e2521..4429fd2e 100644
--- a/bin/SConsDoc.py
+++ b/bin/SConsDoc.py
@@ -218,7 +218,7 @@ class SConsDocHandler(xml.sax.handler.ContentHandler,
def __init__(self):
self._start_dispatch = {}
self._end_dispatch = {}
- keys = self.__class__.__dict__.keys()
+ keys = list(self.__class__.__dict__.keys())
start_tag_method_names = [k for k in keys if k[:6] == 'start_']
end_tag_method_names = [k for k in keys if k[:4] == 'end_']
for method_name in start_tag_method_names:
diff --git a/bin/sfsum b/bin/sfsum
index 22f43d77..aa4f2914 100644
--- a/bin/sfsum
+++ b/bin/sfsum
@@ -119,9 +119,9 @@ if __name__ == '__main__':
# Hard-coded search for 'Open' bugs. This should be easily
# generalized once we figure out other things for this script to do.
- bugs = filter(lambda x: x.status == 'Open', Artifacts['Bugs'])
+ bugs = [x for x in Artifacts['Bugs'] if x.status == 'Open']
- print Artifacts.keys()
+ print list(Artifacts.keys())
print "%d open bugs" % len(bugs)