From bc50edc86ef1c20b268b37c11cbc7877bfefab56 Mon Sep 17 00:00:00 2001
From: david-sarah <david-sarah@jacaranda.org>
Date: Mon, 3 Oct 2011 18:04:07 -0700
Subject: [PATCH] no_network.py: Clean up whitespace around code changed by
 previous patch.

---
 src/allmydata/test/test_mutable.py | 39 +++++++++++++++---------------
 1 file changed, 19 insertions(+), 20 deletions(-)

diff --git a/src/allmydata/test/test_mutable.py b/src/allmydata/test/test_mutable.py
index 45e1d837..3c39ae51 100644
--- a/src/allmydata/test/test_mutable.py
+++ b/src/allmydata/test/test_mutable.py
@@ -3293,10 +3293,9 @@ class Update(GridTestMixin, unittest.TestCase, testutil.ShouldFailMixin):
                 d.addCallback(lambda ign, node=node:
                               node.get_best_mutable_version())
                 d.addCallback(lambda mv:
-                    mv.update(MutableData(new_data), offset))
-                # close around node.
-                d.addCallback(lambda ignored, node=node:
-                    node.download_best_version())
+                              mv.update(MutableData(new_data), offset))
+                d.addCallback(lambda ign, node=node:
+                              node.download_best_version())
                 def _check(results):
                     if results != expected:
                         print
@@ -3445,11 +3444,11 @@ class Update(GridTestMixin, unittest.TestCase, testutil.ShouldFailMixin):
                 d.addCallback(lambda ign, node=node:
                               node.get_best_mutable_version())
                 d.addCallback(lambda mv:
-                    mv.update(MutableData(segment * 2), len(self.data)))
-                d.addCallback(lambda ignored, node=node:
-                    node.download_best_version())
+                              mv.update(MutableData(segment * 2), len(self.data)))
+                d.addCallback(lambda ign, node=node:
+                              node.download_best_version())
                 d.addCallback(lambda results:
-                    self.failUnlessEqual(results, new_data))
+                              self.failUnlessEqual(results, new_data))
             return d
         d0.addCallback(_run)
         return d0
@@ -3465,11 +3464,11 @@ class Update(GridTestMixin, unittest.TestCase, testutil.ShouldFailMixin):
                 d.addCallback(lambda ign, node=node:
                               node.get_best_mutable_version())
                 d.addCallback(lambda mv:
-                    mv.update(MutableData("appended"), len(self.small_data)))
-                d.addCallback(lambda ignored, node=node:
-                    node.download_best_version())
+                              mv.update(MutableData("appended"), len(self.small_data)))
+                d.addCallback(lambda ign, node=node:
+                              node.download_best_version())
                 d.addCallback(lambda results:
-                    self.failUnlessEqual(results, new_data))
+                              self.failUnlessEqual(results, new_data))
             return d
         d0.addCallback(_run)
         return d0
@@ -3489,11 +3488,11 @@ class Update(GridTestMixin, unittest.TestCase, testutil.ShouldFailMixin):
                 d.addCallback(lambda ign, node=node:
                               node.get_best_mutable_version())
                 d.addCallback(lambda mv:
-                    mv.update(MutableData("replaced"), replace_offset))
-                d.addCallback(lambda ignored, node=node:
-                    node.download_best_version())
+                              mv.update(MutableData("replaced"), replace_offset))
+                d.addCallback(lambda ign, node=node:
+                              node.download_best_version())
                 d.addCallback(lambda results:
-                    self.failUnlessEqual(results, new_data))
+                              self.failUnlessEqual(results, new_data))
             return d
         d0.addCallback(_run)
         return d0
@@ -3514,12 +3513,12 @@ class Update(GridTestMixin, unittest.TestCase, testutil.ShouldFailMixin):
                 d.addCallback(lambda ign, node=node:
                               node.get_best_mutable_version())
                 d.addCallback(lambda mv:
-                    mv.update(MutableData((2 * new_segment) + "replaced"),
-                              replace_offset))
+                              mv.update(MutableData((2 * new_segment) + "replaced"),
+                                        replace_offset))
                 d.addCallback(lambda ignored, node=node:
-                    node.download_best_version())
+                              node.download_best_version())
                 d.addCallback(lambda results:
-                    self.failUnlessEqual(results, new_data))
+                              self.failUnlessEqual(results, new_data))
             return d
         d0.addCallback(_run)
         return d0
-- 
2.45.2