Skip to content

Commit b54d843

Browse files
sage: Fix printing of errors
Python 3 often returns iterable map objects where Python 2 returned list. We can just them down to lists explicitly. Overlooked in 13c88ef.
1 parent e108d00 commit b54d843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sage/group_prover.sage

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def prove_zero(R, exprs, assume):
254254
"""Check whether all of the passed expressions are provably zero, given assumptions"""
255255
r, e = prove_nonzero(R, dict(map(lambda x: (fastfrac(R, x.bot, 1), exprs[x]), exprs)), assume)
256256
if not r:
257-
return (False, map(lambda x: "Possibly zero denominator: %s" % x, e))
257+
return (False, list(map(lambda x: "Possibly zero denominator: %s" % x, e)))
258258
zero = R.ideal(list(map(numerator, assume.zero)))
259259
nonzero = prod(x for x in assume.nonzero)
260260
expl = []

0 commit comments

Comments
 (0)