From: Brian Warner <warner@lothar.com>
Date: Sun, 15 Feb 2009 23:23:10 +0000 (-0700)
Subject: test_repairer: hush pyflakes
X-Git-Tag: allmydata-tahoe-1.4.0~223
X-Git-Url: https://git.rkrishnan.org/%5B/flags/%3C?a=commitdiff_plain;h=812f23585d4bdbdf31f73e7cc2e90f88f62231ec;p=tahoe-lafs%2Ftahoe-lafs.git

test_repairer: hush pyflakes
---

diff --git a/src/allmydata/test/test_repairer.py b/src/allmydata/test/test_repairer.py
index d26f95b9..e8032f23 100644
--- a/src/allmydata/test/test_repairer.py
+++ b/src/allmydata/test/test_repairer.py
@@ -385,9 +385,9 @@ class DownUpConnector(unittest.TestCase):
         duc2.write('\x04')
         d = duc2.read_encrypted(2, False)
 
-        def _callb(res):
+        def _callb2(res):
             self.fail("Shouldn't have gotten this callback res: %s" % (res,))
-        d.addCallback(_callb)
+        d.addCallback(_callb2)
 
         # But once the DUC is closed then you *do* get short reads.
         duc3 = repairer.DownUpConnector()
@@ -396,10 +396,10 @@ class DownUpConnector(unittest.TestCase):
         d = duc3.read_encrypted(2, False)
         duc3.write('\x04')
         duc3.close()
-        def _callb(res):
+        def _callb3(res):
             self.failUnlessEqual(len(res), 1)
             self.failUnlessEqual(res[0], '\x04')
-        d.addCallback(_callb)
+        d.addCallback(_callb3)
         return d
 
     def test_short_reads_2(self):