summaryrefslogtreecommitdiffstats
path: root/src/script/scons-time.py
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-12 02:46:09 (GMT)
committerCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-12 02:46:09 (GMT)
commit056622b43309af38e4b6dcbbdcdd0e7b9b176a0d (patch)
tree462a54045bb7f37948fb4404fed7a33579bc0b07 /src/script/scons-time.py
parent055c8046afce036fdfad4bc8d60e4059da148f7d (diff)
downloadSCons-056622b43309af38e4b6dcbbdcdd0e7b9b176a0d.zip
SCons-056622b43309af38e4b6dcbbdcdd0e7b9b176a0d.tar.gz
SCons-056622b43309af38e4b6dcbbdcdd0e7b9b176a0d.tar.bz2
When iterating over dict.items(), we do not need a new list.
Diffstat (limited to 'src/script/scons-time.py')
-rw-r--r--src/script/scons-time.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/scons-time.py b/src/script/scons-time.py
index c788e50..1473c42 100644
--- a/src/script/scons-time.py
+++ b/src/script/scons-time.py
@@ -654,7 +654,7 @@ class SConsTimer(object):
sys.stderr.write('%s Cannot use the "func" subcommand.\n' % self.name_spaces)
sys.exit(1)
statistics = pstats.Stats(file).stats
- matches = [ e for e in list(statistics.items()) if e[0][2] == function ]
+ matches = [ e for e in statistics.items() if e[0][2] == function ]
r = matches[0]
return r[0][0], r[0][1], r[0][2], r[1][3]