From 12bcf7214ae7d141727c58a9181c644e48b9a09e Mon Sep 17 00:00:00 2001 From: Lafrite Date: Sat, 15 Nov 2014 10:03:29 +0100 Subject: [PATCH] solve stupid bug in spe_zip --- pymath/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymath/generic.py b/pymath/generic.py index 3abf92b..0cda495 100644 --- a/pymath/generic.py +++ b/pymath/generic.py @@ -257,7 +257,7 @@ def spe_zip(l1,l2): ans = [] for i in tmp: if None in i: - j = [a for a in i if i != None][-1] + j = [a for a in i if a != None][-1] else: j = list(i) ans.append(j)