changeset 1455:682f4b1d5f91

BeDOZa: The alpha parameter should be the same when adding two KeyLists.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Tue, 06 Jul 2010 10:55:48 +0200
parents 5a762613a0fb
children f7f9647ae5b7
files viff/bedoza.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/viff/bedoza.py	Tue Jul 06 10:52:50 2010 +0200
+++ b/viff/bedoza.py	Tue Jul 06 10:55:48 2010 +0200
@@ -59,6 +59,7 @@
 
     def __add__(self, other):
         """Addition."""
+        assert self.alpha == other.alpha
         keys = []
         for k1, k2 in zip(self.keys, other.keys):
             keys.append(k1 + k2)