]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
remove stray trailing whitespace
authorBrian Warner <warner@lothar.com>
Wed, 4 Feb 2015 09:35:44 +0000 (01:35 -0800)
committerBrian Warner <warner@lothar.com>
Wed, 4 Feb 2015 09:35:44 +0000 (01:35 -0800)
misc/build_helpers/test-osx-pkg.py
src/allmydata/scripts/tahoe_check.py
src/allmydata/test/test_cli.py
src/allmydata/util/iputil.py

index 275c231d7295a75ee764b8e81db96d491b7922c9..664f05381379aee964d7e39c2b8530670d97d8ee 100644 (file)
@@ -54,7 +54,7 @@ def test_osx_pkg(pkgfile):
 
     # cat Payload | gunzip -dc | cpio -i
     cat_process = subprocess.Popen(['cat', 'Payload'], stdout=subprocess.PIPE)
-    gunzip_process = subprocess.Popen(['gunzip', '-dc'], 
+    gunzip_process = subprocess.Popen(['gunzip', '-dc'],
                                       stdin=cat_process.stdout,
                                       stdout=subprocess.PIPE)
     cpio_process = subprocess.Popen(['cpio', '-i'],
index 4ac669215b24e1b58824a9c1874b3d5c6c93ef0e..65f1ce8d6d0dcb92bdfadafe08fa3b764a5233c8 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,7 @@ class DeepCheckStreamer(LineOnlyReceiver):
         if not self.options["raw"]:
             output.done()
         return 0
-        
+
 
     def run(self, options):
         if len(options.locations) == 0:
@@ -331,7 +331,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 b39cafc495939316e4c54c14dc5d6d496f9476db..e8a493fb7ee4ef950835447db4c1e8dbe3719bb4 100644 (file)
@@ -3367,11 +3367,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)
@@ -3380,7 +3380,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)
@@ -3388,7 +3388,7 @@ class Check(GridTestMixin, CLITestMixin, unittest.TestCase):
             self.failUnlessIn("error:", err)
             self.failUnlessIn("nonexistent", err)
         d.addCallback(_check2)
-        
+
         return d
 
 
index af44d186c134e3e4ba1bfed959863934b7e97a71..d58c578aaf646a09bde8efa5916f717606c53c77 100644 (file)
@@ -126,7 +126,7 @@ def get_local_ip_for(target):
         # avoid this DNS lookup. This also makes node startup fractionally
         # faster.
         return None
-    
+
     try:
         udpprot = DatagramProtocol()
         port = reactor.listenUDP(0, udpprot)