Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac 20731: get rid of ZZ._div
Browse files Browse the repository at this point in the history
  • Loading branch information
videlec committed Jun 1, 2016
1 parent 19c075b commit fdf79ac
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/sage/rings/integer_ring.pyx
Expand Up @@ -410,24 +410,6 @@ cdef class IntegerRing_class(PrincipalIdealDomain):
"""
return "\\Bold{Z}"

def _div(self, integer.Integer left, integer.Integer right):
"""
TESTS::
sage: ZZ._div(12,7)
doctest:...: DeprecationWarning: ZZ._div is deprecated, use directly
integer division
See http://trac.sagemath.org/20731 for details.
12/7
sage: ZZ._div(12,0)
Traceback (most recent call last):
...
ZeroDivisionError: rational division by zero
"""
from sage.misc.superseded import deprecation
deprecation(20731, "ZZ._div is deprecated, use directly integer division")
return left / right

def __getitem__(self, x):
"""
Return the ring `\ZZ[...]` obtained by adjoining to the integers one
Expand Down

0 comments on commit fdf79ac

Please sign in to comment.