Skip to content

Commit 29401c6

Browse files
author
Matthias Koeppe
committed
src/sage/rings/finite_rings/integer_mod_ring.py: Remove function deprecated in #32606 (2021)
1 parent c0e33fd commit 29401c6

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

src/sage/rings/finite_rings/integer_mod_ring.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -246,38 +246,6 @@ def create_object(self, version, order, **kwds):
246246
Zmod = Integers = IntegerModRing = IntegerModFactory("IntegerModRing")
247247

248248

249-
def is_IntegerModRing(x):
250-
"""
251-
Return ``True`` if ``x`` is an integer modulo ring.
252-
253-
This function is deprecated. Use :func:`isinstance` with
254-
:class:`sage.rings.abc.IntegerModRing` instead.
255-
256-
EXAMPLES::
257-
258-
sage: from sage.rings.finite_rings.integer_mod_ring import is_IntegerModRing
259-
sage: R = IntegerModRing(17)
260-
sage: is_IntegerModRing(R)
261-
doctest:warning...
262-
DeprecationWarning: the function is_IntegerModRing is deprecated.
263-
Use isinstance(..., sage.rings.abc.IntegerModRing) instead.
264-
See https://github.com/sagemath/sage/issues/32606 for details.
265-
True
266-
sage: is_IntegerModRing(GF(13))
267-
True
268-
sage: is_IntegerModRing(GF(4, 'a')) # needs sage.rings.finite_rings
269-
False
270-
sage: is_IntegerModRing(10)
271-
False
272-
sage: is_IntegerModRing(ZZ)
273-
False
274-
"""
275-
from sage.misc.superseded import deprecation
276-
deprecation(32606, "the function is_IntegerModRing is deprecated. "
277-
"Use isinstance(..., sage.rings.abc.IntegerModRing) instead.")
278-
return isinstance(x, IntegerModRing_generic)
279-
280-
281249
from sage.categories.commutative_rings import CommutativeRings
282250
from sage.categories.finite_enumerated_sets import FiniteEnumeratedSets
283251
from sage.categories.category import JoinCategory

0 commit comments

Comments
 (0)