changeset 1336:13f6a14cafe0

benchmark: wrap long lines
author Martin Geisler <mg@cs.au.dk>
date Tue, 27 Oct 2009 11:35:09 +0100
parents ed3f546283ec
children 568f9c696979
files apps/benchmark.py
diffstat 1 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/apps/benchmark.py	Tue Oct 27 11:33:22 2009 +0100
+++ b/apps/benchmark.py	Tue Oct 27 11:35:09 2009 +0100
@@ -65,8 +65,8 @@
 from viff.field import GF, FakeGF
 from viff.runtime import Runtime, create_runtime, make_runtime_class
 from viff.passive import PassiveRuntime
-from viff.active import BasicActiveRuntime, \
-    TriplesHyperinvertibleMatricesMixin, TriplesPRSSMixin
+from viff.active import (BasicActiveRuntime,
+                         TriplesHyperinvertibleMatricesMixin, TriplesPRSSMixin)
 from viff.comparison import ComparisonToft05Mixin, ComparisonToft07Mixin
 from viff.equality import ProbabilisticEqualityMixin
 from viff.paillier import PaillierRuntime
@@ -74,8 +74,10 @@
 from viff.config import load_config
 from viff.util import find_prime
 
-from benchutil import SelfcontainedBenchmarkStrategy, \
-    NeededDataBenchmarkStrategy, ParallelBenchmark, SequentialBenchmark, BinaryOperation, NullaryOperation
+from benchutil import (SelfcontainedBenchmarkStrategy,
+                       NeededDataBenchmarkStrategy,
+                       ParallelBenchmark, SequentialBenchmark,
+                       BinaryOperation, NullaryOperation)
 
 # Hack in order to avoid Maximum recursion depth exceeded
 # exception;
@@ -235,7 +237,8 @@
 def do_benchmark(runtime, operation, benchmark, field, count, *args):
     benchmark(runtime, operation, field, count).benchmark(*args)
 
-pre_runtime.addCallback(do_benchmark, operation, benchmark, Zp, count, needed_data, options.pc)
+pre_runtime.addCallback(do_benchmark, operation, benchmark,
+                        Zp, count, needed_data, options.pc)
 
 print "#### Starting reactor ###"
 reactor.run()