projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7aedd7c
)
test/check_load: hush (newer) pyflakes
author
Brian Warner
<warner@lothar.com>
Mon, 13 Jul 2015 01:25:55 +0000
(18:25 -0700)
committer
Brian Warner
<warner@lothar.com>
Mon, 13 Jul 2015 01:25:55 +0000
(18:25 -0700)
pyflakes-0.9.2 gets confused about list comprehensions, so rename the
loop variable even though we'd deleted that name already.
src/allmydata/test/check_load.py
patch
|
blob
|
history
diff --git
a/src/allmydata/test/check_load.py
b/src/allmydata/test/check_load.py
index 4674844b8b99e3862cc5cd5574fe9fe274e69a39..a5b3d3ee3dc93951c3b9338598e2e91fd8a13b35 100644
(file)
--- a/
src/allmydata/test/check_load.py
+++ b/
src/allmydata/test/check_load.py
@@
-54,8
+54,8
@@
if sys.argv[1] == "--stats":
stats[name] += float(value)
del name
if last_stats:
- delta = dict( [ (n
ame,stats[name]-last_stats[name
])
- for n
ame
in stats ] )
+ delta = dict( [ (n
,stats[n]-last_stats[n
])
+ for n in stats ] )
print "THIS SAMPLE:"
for name in sorted(delta.keys()):
avg = float(delta[name]) / float(DELAY)