From: Brian Warner Date: Mon, 13 Jul 2015 01:25:55 +0000 (-0700) Subject: test/check_load: hush (newer) pyflakes X-Git-Tag: allmydata-tahoe-1.10.2b1~16 X-Git-Url: https://git.rkrishnan.org/vdrive/%22news.html/index.html?a=commitdiff_plain;h=28b74b0b7441e09072976a678223d7f1d9477a51;p=tahoe-lafs%2Ftahoe-lafs.git test/check_load: hush (newer) pyflakes pyflakes-0.9.2 gets confused about list comprehensions, so rename the loop variable even though we'd deleted that name already. --- diff --git a/src/allmydata/test/check_load.py b/src/allmydata/test/check_load.py index 4674844b..a5b3d3ee 100644 --- 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( [ (name,stats[name]-last_stats[name]) - for name 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)