Skip to content

Commit a0603ee

Browse files
committed
correct language in ValueError
1 parent 057e01c commit a0603ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/schemes/elliptic_curves/ell_point.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1933,7 +1933,7 @@ def tate_pairing(self, Q, n, k, q=None):
19331933
sage: P.tate_pairing(Q, 163, 2)
19341934
Traceback (most recent call last):
19351935
...
1936-
ValueError: The point P must be in the n-torsion
1936+
ValueError: The point P must be n-torsion
19371937
19381938
The Tate pairing is only defined for points on curves defined over finite fields::
19391939
@@ -1975,7 +1975,7 @@ def tate_pairing(self, Q, n, k, q=None):
19751975
raise ValueError("Unexpected field degree: set keyword argument q equal to the size of the base field (big field is GF(q^%s))." % k)
19761976

19771977
if pari.ellmul(E, P, n) != [0]:
1978-
raise ValueError("The point P must be in the n-torsion")
1978+
raise ValueError("The point P must be n-torsion")
19791979

19801980
# NOTE: Pari returns the non-reduced Tate pairing, so we
19811981
# must perform the exponentation ourselves using the supplied

0 commit comments

Comments
 (0)