viff

changeset 953:e1b809d032df

Removed redundant call to tuple.
author Martin Geisler <mg@daimi.au.dk>
date Sat, 27 Sep 2008 10:43:56 +0200
parents 4dd2fedb0a8b
children a978f6160b41
files viff/shamir.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/viff/shamir.py	Sat Sep 27 10:42:21 2008 +0200
     1.2 +++ b/viff/shamir.py	Sat Sep 27 10:43:56 2008 +0200
     1.3 @@ -99,8 +99,8 @@
     1.4      Recombination is done in the optional point *x_recomb*.
     1.5      """
     1.6      xs, ys = zip(*shares)
     1.7 +    key = xs + (x_recomb, )
     1.8      try:
     1.9 -        key = tuple(xs) + (x_recomb, )
    1.10          vector = _recombination_vectors[key]
    1.11      except KeyError:
    1.12          vector = []