changeset 592:ac18c350f8ca

Yet more blank lines added and trailing whitespace removed.
author Martin Geisler <mg@daimi.au.dk>
date Thu, 20 Mar 2008 00:13:34 +0100
parents 80e49a760164
children b892c3460a13
files viff/comparison.py viff/matrix.py viff/shamir.py
diffstat 3 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/viff/comparison.py	Thu Mar 20 00:11:48 2008 +0100
+++ b/viff/comparison.py	Thu Mar 20 00:13:34 2008 +0100
@@ -187,7 +187,7 @@
 
         full_mask = reduce(self.add, dst_shares)
         return tmp - full_mask
-    
+
     @increment_pc
     def greater_than_equal_preproc(self, field, smallField=None):
         """Preprocessing for greater_than_equal."""
--- a/viff/matrix.py	Thu Mar 20 00:11:48 2008 +0100
+++ b/viff/matrix.py	Thu Mar 20 00:13:34 2008 +0100
@@ -28,6 +28,7 @@
 
 from __future__ import division
 
+
 class Matrix(object):
     """A matrix."""
 
@@ -270,6 +271,7 @@
             sum += mat[k, 0] * (-1)**k * sub.determinant()
         return sum
 
+
 def hyper(n, field):
     """Makes a hyper-invertible square matrix.
 
--- a/viff/shamir.py	Thu Mar 20 00:11:48 2008 +0100
+++ b/viff/shamir.py	Thu Mar 20 00:13:34 2008 +0100
@@ -111,6 +111,7 @@
         _recombination_vectors[key] = vector
     return sum(map(operator.mul, ys, vector))
 
+
 def verify_sharing(shares, degree):
     """Verifies that a sharing is correct.
 
@@ -143,4 +144,3 @@
 if __name__ == "__main__":
     import doctest    #pragma NO COVER
     doctest.testmod() #pragma NO COVER
-