viff

changeset 1371:62c4034a06a3

Orlandi: Fix Python 2.4 issue.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Thu, 29 Oct 2009 14:43:25 +0100
parents d93acdb61f34
children 151d4f58ff49 8a4d4e8e99eb
files viff/test/test_orlandi_runtime.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/viff/test/test_orlandi_runtime.py	Thu Oct 29 13:46:21 2009 +0100
     1.2 +++ b/viff/test/test_orlandi_runtime.py	Thu Oct 29 14:43:25 2009 +0100
     1.3 @@ -274,7 +274,7 @@
     1.4      def generate_configs(self, *args):
     1.5          global keys
     1.6          if not keys:
     1.7 -            keys = generate_configs(*args, paillier=NaClPaillier(1024))
     1.8 +            keys = generate_configs(paillier=NaClPaillier(1024), *args)
     1.9          return keys
    1.10          
    1.11  
    1.12 @@ -638,8 +638,9 @@
    1.13  
    1.14      def generate_configs(self, *args):
    1.15          global keys
    1.16 +        print "AAA"
    1.17          if not keys:
    1.18 -            keys = generate_configs(*args, paillier=NaClPaillier(1024))
    1.19 +            keys = generate_configs(paillier=NaClPaillier(1024), *args)
    1.20          return keys
    1.21  
    1.22      @protocol