viff

changeset 1349:aa7eb230e042

Orlandi:Removed unneeded lambdas.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Tue, 27 Oct 2009 20:06:37 +0100
parents 0fa9c0cad8eb
children 43d0f2a811e1
files viff/orlandi.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/viff/orlandi.py	Tue Oct 27 19:44:41 2009 +0100
     1.2 +++ b/viff/orlandi.py	Tue Oct 27 20:06:37 2009 +0100
     1.3 @@ -1091,8 +1091,8 @@
     1.4                  rho1 = self._expect_share(player_id, field)
     1.5                  rho2 = self._expect_share(player_id, field)
     1.6                  self._expect_data(player_id, TEXT, Cx)
     1.7 -                Cx.addCallbacks(lambda Cx: commitment.deserialize(Cx),
     1.8 -                                        self.error_handler)
     1.9 +                Cx.addCallbacks(commitment.deserialize,
    1.10 +                                self.error_handler)
    1.11                  return gatherResults([xi, rho1, rho2, Cx])
    1.12  
    1.13              def send_long(player_id, pc, l):
    1.14 @@ -1101,7 +1101,7 @@
    1.15              def receive_long(player_id):
    1.16                  l = Deferred()
    1.17                  self._expect_data(player_id, TEXT, l)
    1.18 -                l.addCallbacks(lambda x: long(x), self.error_handler)
    1.19 +                l.addCallbacks(long, self.error_handler)
    1.20                  return l
    1.21  
    1.22              def defer_value(l):