From 28b74b0b7441e09072976a678223d7f1d9477a51 Mon Sep 17 00:00:00 2001 From: Brian Warner <warner@lothar.com> Date: Sun, 12 Jul 2015 18:25:55 -0700 Subject: [PATCH] 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. --- src/allmydata/test/check_load.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.45.2