changeset 1053:edf9a6d01c48

Deleted trailing whitespace.
author Martin Geisler <mg@daimi.au.dk>
date Wed, 10 Dec 2008 21:54:17 +0100
parents 4ea259b480b0
children 8bd66841ecdf
files apps/gc-test.py viff/active.py viff/passive.py viff/prss.py viff/test/test_apps.py viff/test/test_runtime.py viff/test/test_util.py
diffstat 7 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/apps/gc-test.py	Wed Dec 10 21:40:37 2008 +0100
+++ b/apps/gc-test.py	Wed Dec 10 21:54:17 2008 +0100
@@ -63,7 +63,7 @@
     def share_next(self, n):
         if isinstance(n, self.Zp):
             n = n.value
-        
+
         if n % 100 == 0:
             now = time()
             memory = memory_usage()
--- a/viff/active.py	Wed Dec 10 21:40:37 2008 +0100
+++ b/viff/active.py	Wed Dec 10 21:54:17 2008 +0100
@@ -61,7 +61,7 @@
         bracha_ready = {}
         bracha_sent_ready = {}
         bracha_delivered = {}
-        
+
         def unsafe_broadcast(data_type, message):
             # Performs a regular broadcast without any guarantees. In
             # other words, it sends the message to each player except
--- a/viff/passive.py	Wed Dec 10 21:40:37 2008 +0100
+++ b/viff/passive.py	Wed Dec 10 21:54:17 2008 +0100
@@ -192,7 +192,7 @@
             return tmp * tmp
         else:
             return share * (share ** (exponent-1))
-    
+
     @increment_pc
     def xor(self, share_a, share_b):
         field = getattr(share_a, "field", getattr(share_b, "field", None))
--- a/viff/prss.py	Wed Dec 10 21:40:37 2008 +0100
+++ b/viff/prss.py	Wed Dec 10 21:54:17 2008 +0100
@@ -171,7 +171,7 @@
     >>> from shamir import recombine
     >>> recombine([(Zp(1), Zp(4)), (Zp(2), Zp(0)), (Zp(3), Zp(11))])
     {0}
-    """    
+    """
     # We start by generating t random numbers for each subset. This is
     # very similar to calling random_replicated_sharing t times, but
     # by doing it like this we immediatedly get the nesting we want.
--- a/viff/test/test_apps.py	Wed Dec 10 21:40:37 2008 +0100
+++ b/viff/test/test_apps.py	Wed Dec 10 21:54:17 2008 +0100
@@ -97,14 +97,14 @@
         m1 = execute("millionaires.py", "--no-ssl", "trial-1.ini")
         m2 = execute("millionaires.py", "--no-ssl", "trial-2.ini")
         m3 = execute("millionaires.py", "--no-ssl", "trial-3.ini")
-        
+
         result = gatherResults([m1, m2, m3])
         result.addCallback(check_outputs)
         return result
 
     def test_share_open(self):
         """Test apps/share-open.py."""
-        
+
         def check_outputs(outputs):
             for o in outputs:
                 self.assertIn("opened a: %s" % GF256(17), o)
@@ -114,14 +114,14 @@
         p1 = execute("share-open.py", "trial-1.ini", "17")
         p2 = execute("share-open.py", "trial-2.ini", "40")
         p3 = execute("share-open.py", "trial-3.ini", "235")
-        
+
         result = gatherResults([p1, p2, p3])
         result.addCallback(check_outputs)
         return result
 
     def test_prss_and_open(self):
         """Test apps/prss-and-open.py."""
-        
+
         def check_outputs(outputs):
             lines = []
             for o in outputs:
@@ -136,7 +136,7 @@
         p1 = execute("prss-and-open.py", "trial-1.ini")
         p2 = execute("prss-and-open.py", "trial-2.ini")
         p3 = execute("prss-and-open.py", "trial-3.ini")
-        
+
         result = gatherResults([p1, p2, p3])
         result.addCallback(check_outputs)
         return result
--- a/viff/test/test_runtime.py	Wed Dec 10 21:40:37 2008 +0100
+++ b/viff/test/test_runtime.py	Wed Dec 10 21:54:17 2008 +0100
@@ -55,7 +55,7 @@
 
     a = 1337
     b = 123
-    
+
     def _verify(self, runtime, result, expected):
         self.assert_type(result, Share)
         opened = runtime.open(result)
--- a/viff/test/test_util.py	Wed Dec 10 21:40:37 2008 +0100
+++ b/viff/test/test_util.py	Wed Dec 10 21:54:17 2008 +0100
@@ -43,12 +43,12 @@
 
         os.environ['VIFF_FAKE'] = "*"
         for module in self._modules:
-            reload(module)        
+            reload(module)
 
     def tearDown(self):
         del os.environ['VIFF_FAKE']
         for module in self._modules:
-            reload(module)        
+            reload(module)
 
     def test_shamir_share(self):
         from viff.shamir import share
@@ -139,7 +139,7 @@
             """Callbacks which return a Deferred."""
             self.calls.append("return_b")
             return b
-        
+
         a.addCallback(self.calls.append)
         a.addCallback(return_b)
 
@@ -164,7 +164,7 @@
             """Callbacks which return a Deferred and an integer."""
             self.calls.append("return_mix")
             return (b, 42)
-        
+
         a.addCallback(self.calls.append)
         a.addCallback(return_mix)