]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Cosmetic: fix trailing whitespace.
authorDaira Hopwood <david-sarah@jacaranda.org>
Tue, 23 Apr 2013 21:21:09 +0000 (22:21 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Wed, 9 Apr 2014 00:44:11 +0000 (01:44 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/scripts/tahoe_check.py
src/allmydata/storage/backends/cloud/msazure/msazure_container.py
src/allmydata/test/test_cli.py

index 4ac669215b24e1b58824a9c1874b3d5c6c93ef0e..b1dd850e1818ee69ed061f9706e06772c386210e 100644 (file)
@@ -95,7 +95,7 @@ def check_location(options, where):
             stdout.write(" corrupt shares:\n")
             for (serverid, storage_index, sharenum) in corrupt:
                 stdout.write("  %s\n" % _quote_serverid_index_share(serverid, storage_index, sharenum))
-                
+
     return 0;
 
 def check(options):
@@ -106,7 +106,7 @@ def check(options):
         return 0
     for location in options.locations:
         errno = check_location(options, location)
-        if errno != 0: 
+        if errno != 0:
             return errno
     return 0
 
@@ -320,7 +320,6 @@ class DeepCheckStreamer(LineOnlyReceiver):
         if not self.options["raw"]:
             output.done()
         return 0
-        
 
     def run(self, options):
         if len(options.locations) == 0:
@@ -331,7 +330,7 @@ class DeepCheckStreamer(LineOnlyReceiver):
         for location in options.locations:
             errno = self.deepcheck_location(options, location)
             if errno != 0:
-                return errno 
+                return errno
         return self.rc
 
 def deepcheck(options):
index a07ef7500a379b72c039d3570a568e300ea0da6f..59019e175e9c3be64f98ad298fa91a9a82e4ce4e 100644 (file)
@@ -245,7 +245,7 @@ if __name__ == '__main__':
         print "Delete item..."
         yield msc.delete_object("key")
         print
-        print "Get contents:", 
+        print "Get contents:",
         result = yield msc.list_objects()
         print [item.key for item in result.contents]
         reactor.stop()
index 61f5fff7db3d1d52052f0d559862622b8094dc9c..8de2356b88a52c5bd29d52c49e94d1a82d858f1e 100644 (file)
@@ -3225,11 +3225,11 @@ class Check(GridTestMixin, CLITestMixin, unittest.TestCase):
         c0 = self.g.clients[0]
         d = c0.create_dirnode()
         def _stash_uri(n):
-            self.uriList.append(n.get_uri()) 
+            self.uriList.append(n.get_uri())
         d.addCallback(_stash_uri)
         d = c0.create_dirnode()
         d.addCallback(_stash_uri)
-        
+
         d.addCallback(lambda ign: self.do_cli("check", self.uriList[0], self.uriList[1]))
         def _check((rc, out, err)):
             self.failUnlessReallyEqual(rc, 0)
@@ -3238,7 +3238,7 @@ class Check(GridTestMixin, CLITestMixin, unittest.TestCase):
             self.failUnlessIn("Healthy", out[:len(out)/2])
             self.failUnlessIn("Healthy", out[len(out)/2:])
         d.addCallback(_check)
-        
+
         d.addCallback(lambda ign: self.do_cli("check", self.uriList[0], "nonexistent:"))
         def _check2((rc, out, err)):
             self.failUnlessReallyEqual(rc, 1)
@@ -3246,7 +3246,6 @@ class Check(GridTestMixin, CLITestMixin, unittest.TestCase):
             self.failUnlessIn("error:", err)
             self.failUnlessIn("nonexistent", err)
         d.addCallback(_check2)
-        
         return d