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 wrap: on
line diff
--- a/viff/orlandi.py	Tue Oct 27 19:44:41 2009 +0100
+++ b/viff/orlandi.py	Tue Oct 27 20:06:37 2009 +0100
@@ -1091,8 +1091,8 @@
                 rho1 = self._expect_share(player_id, field)
                 rho2 = self._expect_share(player_id, field)
                 self._expect_data(player_id, TEXT, Cx)
-                Cx.addCallbacks(lambda Cx: commitment.deserialize(Cx),
-                                        self.error_handler)
+                Cx.addCallbacks(commitment.deserialize,
+                                self.error_handler)
                 return gatherResults([xi, rho1, rho2, Cx])
 
             def send_long(player_id, pc, l):
@@ -1101,7 +1101,7 @@
             def receive_long(player_id):
                 l = Deferred()
                 self._expect_data(player_id, TEXT, l)
-                l.addCallbacks(lambda x: long(x), self.error_handler)
+                l.addCallbacks(long, self.error_handler)
                 return l
 
             def defer_value(l):