Skip to content

Commit

Permalink
Trac #26580: remove deprecated stuff in asymptotic/
Browse files Browse the repository at this point in the history
after #10519

URL: https://trac.sagemath.org/26580
Reported by: chapoton
Ticket author(s): Frédéric Chapoton
Reviewer(s): Daniel Krenn
  • Loading branch information
Release Manager authored and vbraun committed Oct 30, 2018
2 parents 7289f7c + aa00f9f commit f98c564
Showing 1 changed file with 0 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3148,8 +3148,6 @@ def base_ring(self):
"""
return self.base().base_ring()

from sage.misc.decorators import rename_keyword
@rename_keyword(deprecation=10519, reduce_='reduce')
def _element_constructor_(self, *args, **kwargs):
r"""
Returns an element of this ring.
Expand All @@ -3169,43 +3167,6 @@ def _element_constructor_(self, *args, **kwargs):
R = self.base()
Q = R.fraction_field()

# process deprecated keyword arguments
hasn = 'numerator' in kwargs
hasdf = 'denominator_factored' in kwargs
if hasn:
from sage.misc.superseded import deprecation
deprecation(10519, "Keyword argument 'numerator' "
"is deprecated. "
"Ignoring non-keyword arguments (if any). "
"Specify numerator and factored denominator "
"as first and second argument, i.e., use "
"something like FFPD(n, df).")
if hasdf:
from sage.misc.superseded import deprecation
deprecation(10519, "Keyword argument 'denominator_factored' "
"is deprecated. "
"Ignoring non-keyword arguments (if any). "
"Specify numerator and factored denominator "
"as first and second argument, i.e., use "
"something like FFPD(n, df).")
if hasn or hasdf:
args = [kwargs.pop('numerator') if hasn else R(0),
kwargs.pop('denominator_factored') if hasdf else []]

hasq = 'quotient' in kwargs
if hasq:
from sage.misc.superseded import deprecation
deprecation(10519, "Keyword argument 'quotient' "
"is deprecated. "
"Ignoring non-keyword arguments (if any). "
"Specify numerator and factored denominator "
"as first and second argument, i.e., use "
"something like FFPD(q).")
args = [kwargs.pop('quotient')]

if (hasn or hasdf) and hasq:
raise ValueError('parameters ambiguous')

# process keyword arguments
reduce = kwargs.pop('reduce', None)

Expand Down

0 comments on commit f98c564

Please sign in to comment.