]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test/check_load: hush (newer) pyflakes
authorBrian Warner <warner@lothar.com>
Mon, 13 Jul 2015 01:25:55 +0000 (18:25 -0700)
committerBrian 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

index 4674844b8b99e3862cc5cd5574fe9fe274e69a39..a5b3d3ee3dc93951c3b9338598e2e91fd8a13b35 100644 (file)
@@ -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)