Ticket #12768: trac_12768-rebase-to-13109.v2.patch

File trac_12768-rebase-to-13109.v2.patch, 2.1 KB (added by jhpalmieri, 9 years ago)
  • sage/schemes/elliptic_curves/ell_rational_field.py

    # HG changeset patch
    # User J. H. Palmieri <palmieri@math.washington.edu>
    # Date 1341082106 25200
    # Node ID c3e20c27a17074e33ccef1f9a79421285dd92f76
    # Parent  351e9f76d71033ece2786b04196b33b04f06d332
    rebase 12768 to 13109: fix a deprecation
    
    diff --git a/sage/schemes/elliptic_curves/ell_rational_field.py b/sage/schemes/elliptic_curves/ell_rational_field.py
    a b class EllipticCurve_rational_field(Ellip 
    39623962            [ 5 25  1]
    39633963            sage: f = isocls.isogenies()[0][1]; f.kernel_polynomial()
    39643964            x^2 + x - 29/5
     3965
     3966        Using ``use_tuple=True`` is deprecated::
     3967
     3968            sage: E = EllipticCurve('11a1')
     3969            sage: isocls = E.isogeny_class(algorithm="sage", use_tuple=True)
     3970            doctest:...: DeprecationWarning: For elliptic curves E over Q, isogeny_class(use_tuple=False) returns a class
     3971            that has methods producing the isogeny graph and list of lists of isogenies.
     3972            use_tuple=True (currently default) is deprecated.
     3973            See http://trac.sagemath.org/12768 for details.
    39653974        """
    39663975        try:
    39673976            isoclass = self._isoclass[algorithm]
    class EllipticCurve_rational_field(Ellip 
    39783987        if order:
    39793988            isoclass = isoclass.reorder(order)
    39803989        if use_tuple:
    3981             from sage.misc.misc import deprecation
    3982             deprecation("""For elliptic curves E over Q, isogeny_class(use_tuple=False) returns a class
     3990            from sage.misc.superseded import deprecation
     3991            deprecation(12768, """For elliptic curves E over Q, isogeny_class(use_tuple=False) returns a class
    39833992that has methods producing the isogeny graph and list of lists of isogenies.
    3984 use_tuple=True (currently default) is deprecated.""", "Sage Version 5.0")
     3993use_tuple=True (currently default) is deprecated.""")
    39853994            # After a year or so (in May 2013) we should switch the default to use_tuple=False as the default and deprecate
    39863995            # the keyword argument
    39873996            if return_maps: