Skip to content

Commit 8360ab5

Browse files
committed
clean up copy pasta from polynomial_element.pyx's roots
1 parent 3154bb3 commit 8360ab5

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/sage/rings/finite_rings/finite_field_base.pyx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2185,14 +2185,7 @@ cdef class FiniteField(Field):
21852185
L = K if ring is None else ring
21862186

21872187
if K != L:
2188-
try:
2189-
f_L = f.change_ring(L)
2190-
except (TypeError, ValueError):
2191-
if L.is_exact() and L.is_subring(K):
2192-
return f._roots_in_subring(L, multiplicities)
2193-
else:
2194-
raise NotImplementedError
2195-
return f_L.roots(multiplicities=multiplicities)
2188+
raise NotImplementedError
21962189

21972190
if multiplicities:
21982191
return f._roots_from_factorization(f.factor(), multiplicities)

0 commit comments

Comments
 (0)