Skip to content

Commit

Permalink
src/sage/rings/finite_rings/integer_mod_ring.py: Remove function depr…
Browse files Browse the repository at this point in the history
…ecated in sagemath#32606 (2021)
  • Loading branch information
mkoeppe committed Sep 21, 2023
1 parent c0e33fd commit 29401c6
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions src/sage/rings/finite_rings/integer_mod_ring.py
Expand Up @@ -246,38 +246,6 @@ def create_object(self, version, order, **kwds):
Zmod = Integers = IntegerModRing = IntegerModFactory("IntegerModRing")


def is_IntegerModRing(x):
"""
Return ``True`` if ``x`` is an integer modulo ring.
This function is deprecated. Use :func:`isinstance` with
:class:`sage.rings.abc.IntegerModRing` instead.
EXAMPLES::
sage: from sage.rings.finite_rings.integer_mod_ring import is_IntegerModRing
sage: R = IntegerModRing(17)
sage: is_IntegerModRing(R)
doctest:warning...
DeprecationWarning: the function is_IntegerModRing is deprecated.
Use isinstance(..., sage.rings.abc.IntegerModRing) instead.
See https://github.com/sagemath/sage/issues/32606 for details.
True
sage: is_IntegerModRing(GF(13))
True
sage: is_IntegerModRing(GF(4, 'a')) # needs sage.rings.finite_rings
False
sage: is_IntegerModRing(10)
False
sage: is_IntegerModRing(ZZ)
False
"""
from sage.misc.superseded import deprecation
deprecation(32606, "the function is_IntegerModRing is deprecated. "
"Use isinstance(..., sage.rings.abc.IntegerModRing) instead.")
return isinstance(x, IntegerModRing_generic)


from sage.categories.commutative_rings import CommutativeRings
from sage.categories.finite_enumerated_sets import FiniteEnumeratedSets
from sage.categories.category import JoinCategory
Expand Down

0 comments on commit 29401c6

Please sign in to comment.