viff

changeset 1312:878eeda73dab

removed unused imports
author Martin Geisler <mg@cs.au.dk>
date Mon, 19 Oct 2009 17:48:11 +0200
parents b428f2b066c5
children 81be1830f33e
files apps/benchmark.py viff/hash_broadcast.py viff/orlandi.py viff/test/test_hash_broadcast.py viff/test/test_orlandi_runtime.py
diffstat 5 files changed, 5 insertions(+), 8 deletions(-) [+]
line diff
     1.1 --- a/apps/benchmark.py	Mon Oct 19 17:21:03 2009 +0200
     1.2 +++ b/apps/benchmark.py	Mon Oct 19 17:48:11 2009 +0200
     1.3 @@ -57,7 +57,6 @@
     1.4  import time
     1.5  from math import log
     1.6  from optparse import OptionParser
     1.7 -import operator
     1.8  
     1.9  import viff.reactor
    1.10  viff.reactor.install()
     2.1 --- a/viff/hash_broadcast.py	Mon Oct 19 17:21:03 2009 +0200
     2.2 +++ b/viff/hash_broadcast.py	Mon Oct 19 17:48:11 2009 +0200
     2.3 @@ -17,7 +17,7 @@
     2.4  # You should have received a copy of the GNU Lesser General Public
     2.5  # License along with VIFF. If not, see <http://www.gnu.org/licenses/>.
     2.6  
     2.7 -from twisted.internet.defer import gatherResults, Deferred, DeferredList
     2.8 +from twisted.internet.defer import Deferred
     2.9  
    2.10  try:
    2.11      from hashlib import sha1
     3.1 --- a/viff/orlandi.py	Mon Oct 19 17:21:03 2009 +0200
     3.2 +++ b/viff/orlandi.py	Mon Oct 19 17:48:11 2009 +0200
     3.3 @@ -15,7 +15,7 @@
     3.4  # You should have received a copy of the GNU Lesser General Public
     3.5  # License along with VIFF. If not, see <http://www.gnu.org/licenses/>.
     3.6  
     3.7 -from twisted.internet.defer import Deferred, DeferredList, gatherResults
     3.8 +from twisted.internet.defer import Deferred, gatherResults
     3.9  
    3.10  from viff.runtime import Runtime, Share, ShareList, gather_shares, preprocess
    3.11  from viff.util import rand
     4.1 --- a/viff/test/test_hash_broadcast.py	Mon Oct 19 17:21:03 2009 +0200
     4.2 +++ b/viff/test/test_hash_broadcast.py	Mon Oct 19 17:48:11 2009 +0200
     4.3 @@ -15,11 +15,10 @@
     4.4  # You should have received a copy of the GNU Lesser General Public
     4.5  # License along with VIFF. If not, see <http://www.gnu.org/licenses/>.
     4.6  
     4.7 -from twisted.internet.defer import gatherResults, Deferred, DeferredList
     4.8 +from twisted.internet.defer import Deferred, DeferredList
     4.9  
    4.10  from viff.test.util import RuntimeTestCase, protocol
    4.11  from viff.field import GF
    4.12 -from viff.runtime import Share
    4.13  
    4.14  from viff.comparison import Toft05Runtime
    4.15  from viff.hash_broadcast import HashBroadcastMixin
     5.1 --- a/viff/test/test_orlandi_runtime.py	Mon Oct 19 17:21:03 2009 +0200
     5.2 +++ b/viff/test/test_orlandi_runtime.py	Mon Oct 19 17:48:11 2009 +0200
     5.3 @@ -17,8 +17,8 @@
     5.4  
     5.5  from twisted.internet.defer import gatherResults, DeferredList
     5.6  
     5.7 -from viff.test.util import RuntimeTestCase, protocol, BinaryOperatorTestCase
     5.8 -from viff.runtime import Share, gather_shares
     5.9 +from viff.test.util import RuntimeTestCase, protocol
    5.10 +from viff.runtime import gather_shares
    5.11  try:
    5.12      from viff.orlandi import OrlandiRuntime, OrlandiShare
    5.13      import commitment
    5.14 @@ -28,7 +28,6 @@
    5.15      OrlandiShare = None
    5.16  
    5.17  from viff.field import FieldElement, GF
    5.18 -from viff.passive import PassiveRuntime
    5.19  
    5.20  from viff.util import rand
    5.21