Ticket #13109: trac_13109_ticket_numbers.2.patch

File trac_13109_ticket_numbers.2.patch, 110.0 KB (added by vbraun, 8 years ago)

Updated patch

  • sage/algebras/group_algebra.py

    # HG changeset patch
    # User Volker Braun <vbraun@stp.dias.ie>
    # Date 1340981192 -3600
    # Node ID aa2153be60dd696402366cb1e401e166f7998f1a
    # Parent  7e67f5e9a9b4a0726c6912400b43893fbdd24b44
    Modify all deprecations to refer to the trac ticket number
    
    diff --git a/sage/algebras/group_algebra.py b/sage/algebras/group_algebra.py
    a b  
    3434from sage.sets.set import Set
    3535
    3636
    37 from sage.misc.misc import deprecation
    38 deprecation("The module group_algebra is deprecated and will be removed in a future version of Sage. Use group_algebra_new instead.")
     37from sage.misc.superseded import deprecation
     38deprecation(6670, "The module group_algebra is deprecated and will be removed in a future version of Sage. Use group_algebra_new instead.")
    3939
    4040
    4141class GroupAlgebra(Algebra):
  • sage/algebras/steenrod/steenrod_algebra.py

    diff --git a/sage/algebras/steenrod/steenrod_algebra.py b/sage/algebras/steenrod/steenrod_algebra.py
    a b  
    31693169                doctest:...: DeprecationWarning: (Since Sage 4.6.2) The .basis() method is deprecated.  Use .change_basis() instead.
    31703170                Sq(0,1) + Sq(3)
    31713171            """
    3172             from sage.misc.misc import deprecation
    3173             deprecation('The .basis() method is deprecated. Use .change_basis() instead.',
    3174                         version='Sage 4.6.2')
     3172            from sage.misc.superseded import deprecation
     3173            deprecation(10052, 'The .basis() method is deprecated. Use .change_basis() instead.')
    31753174            return self.change_basis(basis)
    31763175
    31773176        def coproduct(self, algorithm='milnor'):
  • sage/all.py

    diff --git a/sage/all.py b/sage/all.py
    a b  
    155155#after a few releases, and this code should be removed.
    156156#--Mike Hansen 9/25/2008
    157157message = "\nUsing %(name)s from the top level is deprecated since it was designed to be used by developers rather than end users.\nIt most likely does not do what you would expect it to do.  If you really need to use it, import it from the module that it is defined in."
    158 sage.misc.misc.deprecated_callable_import(None, globals(), locals(),
    159                                           [name for name in globals().keys()
    160                                            if name.startswith('is_') and name[3].isupper()], message)
     158sage.misc.superseded.deprecated_callable_import(
     159    10107, None, globals(), locals(),
     160    [name for name in globals().keys() if name.startswith('is_') and name[3].isupper()],
     161    message)
    161162
    162163del message, name
    163164
  • sage/calculus/calculus.py

    diff --git a/sage/calculus/calculus.py b/sage/calculus/calculus.py
    a b  
    11851185            l = maxima.sr_limit(ex, v, a)
    11861186        elif dir in ['plus', '+', 'right', 'above']:
    11871187            if dir == 'above':
    1188                 from sage.misc.misc import deprecation
    1189                 deprecation("the keyword 'above' is deprecated. Please use 'right' or '+' instead.", 'Sage version 4.6')
     1188                from sage.misc.superseded import deprecation
     1189                deprecation(9200, "the keyword 'above' is deprecated. Please use 'right' or '+' instead.")
    11901190            l = maxima.sr_limit(ex, v, a, 'plus')
    11911191        elif dir in ['minus', '-', 'left', 'below']:
    11921192            if dir == 'below':
    1193                 from sage.misc.misc import deprecation
    1194                 deprecation("the keyword 'below' is deprecated. Please use 'left' or '-' instead.", 'Sage version 4.6')
     1193                from sage.misc.superseded import deprecation
     1194                deprecation(9200, "the keyword 'below' is deprecated. Please use 'left' or '-' instead.")
    11951195            l = maxima.sr_limit(ex, v, a, 'minus')
    11961196    elif algorithm == 'maxima_taylor':
    11971197        if dir is None:
  • sage/calculus/desolvers.py

    diff --git a/sage/calculus/desolvers.py b/sage/calculus/desolvers.py
    a b  
    846846    soln = maxima(cmd)
    847847    return [f.rhs()._maxima_init_() for f in soln]
    848848
    849 @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     849@rename_keyword(deprecation=6094, method="algorithm")
    850850def eulers_method(f,x0,y0,h,x1,algorithm="table"):
    851851    r"""
    852852    This implements Euler's method for finding numerically the
     
    931931    if algorithm!="table":
    932932        return soln
    933933
    934 @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     934@rename_keyword(deprecation=6094, method="algorithm")
    935935def eulers_method_2x2(f,g, t0, x0, y0, h, t1,algorithm="table"):
    936936    r"""
    937937    This implements Euler's method for finding numerically the
  • sage/calculus/var.pyx

    diff --git a/sage/calculus/var.pyx b/sage/calculus/var.pyx
    a b  
    130130    G = globals()  # this is the reason the code must be in Cython.
    131131    if kwds.has_key('ns'):
    132132        if kwds['ns']:
    133             from sage.misc.misc import deprecation
    134             deprecation("The new (Pynac) symbolics are now the only symbolics; please do not use keyword 'ns' any longer.")
     133            from sage.misc.superseded import deprecation
     134            deprecation(6559, "The new (Pynac) symbolics are now the only symbolics; please do not use keyword 'ns' any longer.")
    135135        else:
    136136            raise NotImplementedError, "The new (Pynac) symbolics are now the only symbolics; please do not use keyword `ns` any longer."
    137137        kwds.pop('ns')
  • sage/categories/modules_with_basis.py

    diff --git a/sage/categories/modules_with_basis.py b/sage/categories/modules_with_basis.py
    a b  
    1616
    1717from sage.misc.lazy_attribute import lazy_attribute
    1818from sage.misc.cachefunc import cached_method
    19 from sage.misc.misc import attrcall, deprecated_function_alias
     19from sage.misc.misc import attrcall
     20from sage.misc.superseded import deprecated_function_alias
    2021from sage.misc.sage_itertools import max_cmp, min_cmp
    2122from sage.categories.all import Sets, CommutativeAdditiveSemigroups, Modules, HomCategory, Homset
    2223from sage.categories.cartesian_product import CartesianProductsCategory
     
    858859            """
    859860            return self.parent().sum_of_terms( f(m,c) for m,c in self )
    860861
    861         map_term = deprecated_function_alias(map_item, 'Sage Version 4.4.2')
    862         map_mc   = deprecated_function_alias(map_item, 'Sage Version 4.4.2')
     862        map_term = deprecated_function_alias(8890, map_item)
     863        map_mc   = deprecated_function_alias(8890, map_item)
    863864
    864865        def tensor(*elements):
    865866            """
  • sage/coding/code_bounds.py

    diff --git a/sage/coding/code_bounds.py b/sage/coding/code_bounds.py
    a b  
    182182from sage.functions.all import log, sqrt
    183183from sage.misc.decorators import rename_keyword
    184184
    185 @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     185@rename_keyword(deprecation=6094, method="algorithm")
    186186def codesize_upper_bound(n,d,q,algorithm=None):
    187187    r"""
    188188    This computes the minimum value of the upper bound using the
     
    257257    ans=q**n/volume_hamming(n,q,d-1)
    258258    return ans
    259259
    260 @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     260@rename_keyword(deprecation=6094, method="algorithm")
    261261def plotkin_upper_bound(n,q,d, algorithm=None):
    262262    r"""
    263263    Returns Plotkin upper bound for number of elements in the largest
     
    289289                fact = int(fact) + 1
    290290            return int(d/( d - t * fact)) * q**(n - fact)
    291291
    292 @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     292@rename_keyword(deprecation=6094, method="algorithm")
    293293def griesmer_upper_bound(n,q,d,algorithm=None):
    294294    r"""
    295295    Returns the Griesmer upper bound for number of elements in the
     
    323323        return q**(k-1)
    324324
    325325
    326 @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     326@rename_keyword(deprecation=6094, method="algorithm")
    327327def elias_upper_bound(n,q,d,algorithm=None):
    328328    r"""
    329329    Returns the Elias upper bound for number of elements in the largest
  • sage/coding/decoder.py

    diff --git a/sage/coding/decoder.py b/sage/coding/decoder.py
    a b  
    7878            break
    7979    return s,w
    8080
    81 @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     81@rename_keyword(deprecation=6094, method="algorithm")
    8282def decode(C, v, algorithm="syndrome"):
    8383    """
    8484    The vector v represents a received word, so should
  • sage/coding/linear_code.py

    diff --git a/sage/coding/linear_code.py b/sage/coding/linear_code.py
    a b  
    323323    v = [eval(gap.eval("w["+str(i)+"]")) for i in range(1,n+2)] # because GAP returns vectors in compressed form
    324324    return v
    325325
    326 @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     326@rename_keyword(deprecation=11033, method="algorithm")
    327327def min_wt_vec_gap(Gmat, n, k, F, algorithm=None):
    328328    r"""
    329329    Returns a minimum weight vector of the code generated by ``Gmat``.
     
    782782            sage: G.order()
    783783            168
    784784        """
    785         from sage.misc.misc import deprecation
    786         deprecation("This function is deprecated.  Call the method"
     785        from sage.misc.superseded import deprecation
     786        deprecation(11033, "This function is deprecated.  Call the method"
    787787                    +" permutation_automorphism_group instead.")
    788788        #deprecated 4.7
    789789        C = self
     
    12231223        except:
    12241224            raise ValueError("Sorry, the covering radius of this code cannot be computed by Guava.")
    12251225
    1226     @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     1226    @rename_keyword(deprecation=11033, method="algorithm")
    12271227    def decode(self, right, algorithm="syndrome"):
    12281228        r"""
    12291229        Decodes the received vector ``right`` to an element `c` in this code.
     
    16431643                return False
    16441644        return True
    16451645
    1646     @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     1646    @rename_keyword(deprecation=11033, method="algorithm")
    16471647    def is_permutation_equivalent(self,other,algorithm=None):
    16481648        """
    16491649        Returns ``True`` if ``self`` and ``other`` are permutation equivalent
     
    18241824        s = 'LinearCode(%s)' % G
    18251825        return s
    18261826
    1827     @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     1827    @rename_keyword(deprecation=11033, method="algorithm")
    18281828    def minimum_distance(self, algorithm=None):
    18291829        r"""
    18301830        Returns the minimum distance of this linear code.
     
    19221922        gap.eval("M:=GModuleByMats("+mats_str+", GF("+str(q)+"))")
    19231923        print gap("MTX.CompositionFactors( M )")
    19241924
    1925     @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     1925    @rename_keyword(deprecation=11033, method="algorithm")
    19261926    def permutation_automorphism_group(self, algorithm="partition"):
    19271927        r"""
    19281928        If `C` is an `[n,k,d]` code over `F`, this function computes the
     
    24152415        Gs = Cdpd.gen_mat()
    24162416        return LinearCode(Gs)
    24172417
    2418     @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     2418    @rename_keyword(deprecation=11033, method="algorithm")
    24192419    def spectrum(self, algorithm=None):
    24202420        r"""
    24212421        Returns the spectrum of ``self`` as a list.
  • sage/combinat/combinat.py

    diff --git a/sage/combinat/combinat.py b/sage/combinat/combinat.py
    a b  
    232232from sage.structure.sage_object import SageObject
    233233from sage.structure.parent import Parent
    234234from sage.misc.lazy_attribute import lazy_attribute
    235 from sage.misc.misc import deprecation
     235from sage.misc.superseded import deprecation
    236236from combinat_cython import _stirling_number2
    237237######### combinatorial sequences
    238238
     
    10071007            doctest:1: DeprecationWarning: The usage of count for combinatorial classes is deprecated. Please use cardinality
    10081008            3
    10091009        """
    1010         deprecation("The usage of count for combinatorial classes is deprecated. Please use cardinality")
     1010        deprecation(5719, "The usage of count for combinatorial classes is deprecated. Please use cardinality")
    10111011        return self.cardinality()
    10121012
    10131013    def is_finite(self):
     
    11701170        """
    11711171        # assert not isinstance(self, Parent) # Raises an alert if we override the proper definition from Parent
    11721172        if hasattr(self, "object_class"):
    1173             from sage.misc.misc import deprecation
    1174             deprecation("Using object_class for specifying the class of the elements of a combinatorial class is deprecated. Please use Element instead")
     1173            from sage.misc.superseded import deprecation
     1174            deprecation(5891, "Using object_class for specifying the class of the elements of a combinatorial class is deprecated. Please use Element instead")
    11751175        return self.Element
    11761176
    11771177    def _element_constructor_(self, x):
     
    13301330            sage: [i for i in p5]
    13311331            [[3], [2, 1], [1, 1, 1]]       
    13321332        """
    1333         from sage.misc.misc import deprecation
    1334         deprecation("The usage of iterator for combinatorial classes is deprecated. Please use the class itself")
     1333        from sage.misc.superseded import deprecation
     1334        deprecation(5308, "The usage of iterator for combinatorial classes is deprecated. Please use the class itself")
    13351335        return self.__iter__()
    13361336   
    13371337    def __iter__(self):
  • sage/combinat/designs/block_design.py

    diff --git a/sage/combinat/designs/block_design.py b/sage/combinat/designs/block_design.py
    a b  
    7474    r = integer_floor(L * x/y)
    7575    return (t, v, b, r, k, L)
    7676
    77 @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     77@rename_keyword(deprecation=6094, method="algorithm")
    7878def ProjectiveGeometryDesign(n, d, F, algorithm=None):
    7979    """
    8080    Input: n is the projective dimension, so the number of points is v
  • sage/combinat/designs/incidence_structures.py

    diff --git a/sage/combinat/designs/incidence_structures.py b/sage/combinat/designs/incidence_structures.py
    a b  
    376376           gB.append([x+1 for x in b])
    377377        return "BlockDesign("+str(v)+","+str(gB)+")"
    378378
    379     @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     379    @rename_keyword(deprecation=6094, method="algorithm")
    380380    def dual_incidence_structure(self, algorithm=None):
    381381        """
    382382        Wraps GAP Design's DualBlockDesign (see [1]). The dual of a block
  • sage/combinat/e_one_star.py

    diff --git a/sage/combinat/e_one_star.py b/sage/combinat/e_one_star.py
    a b  
    816816            sage: P.add([Face((1,2,3), 3), Face((2,3,3), 2)])   #not tested
    817817            Patch: [[(0, 0, 0), 1]*, [(0, 0, 0), 2]*, [(1, 2, 3), 3]*, [(2, 3, 3), 2]*]
    818818        """
    819         from sage.misc.misc import deprecation
    820         deprecation("Objects sage.combinat.e_one_star.Patch " + \
     819        from sage.misc.superseded import deprecation
     820        deprecation(12384, "Objects sage.combinat.e_one_star.Patch " + \
    821821                    "are immutable since Sage-4.7.1. " + \
    822822                    "Use the usual addition (P + Q) or use the Patch.union method.")
    823823        return self.union(other)
     
    10391039        if not isinstance(E, E1Star):
    10401040            raise TypeError, "E must be an instance of E1Star"
    10411041
    1042         from sage.misc.misc import deprecation
    1043         deprecation("Objects sage.combinat.e_one_star.Patch " + \
     1042        from sage.misc.superseded import deprecation
     1043        deprecation(12384, "Objects sage.combinat.e_one_star.Patch " + \
    10441044                    "are immutable since Sage-4.7.1. " + \
    10451045                    "Use the usual calling method of E1Star (E(P)).")
    10461046        return E(self, iterations=iterations)
  • sage/combinat/free_module.py

    diff --git a/sage/combinat/free_module.py b/sage/combinat/free_module.py
    a b  
    14631463            sage: s.combinatorial_class()
    14641464            Partitions
    14651465        """
    1466         from sage.misc.misc import deprecation
    1467         deprecation('"FM.combinatorial_class()" is deprecated. Use "F.basis().keys()" instead !')
     1466        from sage.misc.superseded import deprecation
     1467        deprecation(6136, '"FM.combinatorial_class()" is deprecated. Use "F.basis().keys()" instead !')
    14681468        return self._basis_keys
    14691469
    14701470    def dimension(self):
  • sage/combinat/integer_list.py

    diff --git a/sage/combinat/integer_list.py b/sage/combinat/integer_list.py
    a b  
    356356        sage: list(iterator(2,*params))
    357357        [[0, 1, 1], [0, 0, 2]]
    358358    """
    359     #from sage.misc.misc import deprecation
    360     #deprecation("sage.combinat.integer_list.iterator is deprecated. Please use IntegerListsLex(...)")
     359    #from sage.misc.superseded import deprecation
     360    #deprecation(trac_number, "sage.combinat.integer_list.iterator is deprecated. Please use IntegerListsLex(...)")
    361361    succ = lambda x: next(x, min_length, max_length, floor, ceiling, min_slope, max_slope)
    362362
    363363    #Handle the case where n is a list of integers
     
    460460        sage: integer_list.list(4, *compositions)
    461461        [[4], [3, 1], [2, 2], [2, 1, 1], [1, 3], [1, 2, 1], [1, 1, 2], [1, 1, 1, 1]]
    462462    """
    463     #deprecation("sage.combinat.integer_list.list(...) is deprecated. Please use list(IntegerListsLex(...))")
     463    #deprecation(trac_number, "sage.combinat.integer_list.list(...) is deprecated. Please use list(IntegerListsLex(...))")
    464464    return __builtin__.list(iterator(n, min_length, max_length, floor, ceiling, min_slope, max_slope))
    465465
    466466def upper_regular(comp, min_slope, max_slope):
  • sage/combinat/partition.py

    diff --git a/sage/combinat/partition.py b/sage/combinat/partition.py
    a b  
    238238from integer_vector import IntegerVectors
    239239from cartesian_product import CartesianProduct
    240240from integer_list import IntegerListsLex
    241 from sage.misc.misc import deprecation, deprecated_function_alias
     241from sage.misc.superseded import deprecation, deprecated_function_alias
    242242from sage.misc.prandom import randrange
    243243
    244244def Partition(mu=None, **keyword):
     
    296296    elif 'core' in keyword and 'canonical_quotient' in keyword and len(keyword)==2:
    297297        raise NotImplementedError
    298298    elif 'core_and_quotient' in keyword and len(keyword)==1:
    299         deprecation('"core_and_quotient=(*)" is deprecated. Use "core=[*], quotient=[*]" instead.')
     299        deprecation(5790, '"core_and_quotient=(*)" is deprecated. Use "core=[*], quotient=[*]" instead.')
    300300        return from_core_and_quotient(*keyword['core_and_quotient'])
    301301    else:
    302302        raise ValueError, 'incorrect syntax for Partition()'
     
    885885        return res
    886886
    887887
    888     boxes = deprecated_function_alias(cells,
    889                 'Sage Version 4.3')
     888    boxes = deprecated_function_alias(7515, cells)
    890889
    891890    def generalized_pochhammer_symbol(self, a, alpha):
    892891        r"""
     
    973972        perm = permutation.Permutation(word)
    974973        return perm.robinson_schensted()[1]
    975974
    976     associated = deprecated_function_alias(conjugate, "Sage Version 4.4")
     975    associated = deprecated_function_alias(6655, conjugate)
    977976
    978977    def arm_length(self, i, j):
    979978        """
     
    10071006        else:
    10081007            raise ValueError, "The cells is not in the diagram"
    10091008
    1010     arm = deprecated_function_alias(arm_length,
    1011         'Sage Version 4.3')
     1009    arm = deprecated_function_alias(6655, arm_length)
    10121010
    10131011    def arm_lengths(self, flat=False):
    10141012        """
     
    10961094        else:
    10971095            raise ValueError, "The cells is not in the diagram"
    10981096
    1099     leg = deprecated_function_alias(leg_length,
    1100         'Sage Version 4.3')
     1097    leg = deprecated_function_alias(6655, leg_length)
    11011098
    11021099    def leg_lengths(self, flat=False):
    11031100        """
     
    12511248        """
    12521249        return self.leg_length(i,j)+self.arm_length(i,j)+1
    12531250
    1254     hook = deprecated_function_alias(hook_length,
    1255         'Sage Version 4.3')
    1256 
     1251    hook = deprecated_function_alias(7515, hook_length)
    12571252
    12581253    def hooks(self):
    12591254        """
     
    18011796        #Select the r-core
    18021797        return Partition_class(filter(lambda x: x != 0, part))
    18031798
    1804     r_core = deprecated_function_alias(core,
    1805         'Sage Version 4.3')
     1799    r_core = deprecated_function_alias(11165, core)
    18061800
    18071801    def quotient(self, length):
    18081802        """
     
    18691863
    18701864        return tuple(map(Partition_class, result))
    18711865
    1872     r_quotient = deprecated_function_alias(quotient,
    1873         'Sage Version 4.3')
     1866    r_quotient = deprecated_function_alias(7515, quotient)
    18741867
    18751868    def is_core(self, k):
    18761869        r"""
     
    19661959
    19671960        raise ValueError, "[%s, %s] is not an addable cell"%(i,j)
    19681961
    1969     add_box = deprecated_function_alias(add_cell,
    1970         'Sage Version 4.3')
     1962    add_box = deprecated_function_alias(7515, add_cell)
    19711963
    19721964    def remove_cell(self, i, j = None):
    19731965        """
     
    20031995        else:
    20041996            return Partition(self[:i] + [ self[i:i+1][0] - 1 ] + self[i+1:])
    20051997
    2006     remove_box = deprecated_function_alias(remove_cell,
    2007         'Sage Version 4.3')
    2008 
     1998    remove_box = deprecated_function_alias(7515, remove_cell)
    20091999
    20102000    def k_skew(self, k):
    20112001        r"""
     
    28402830        sage: RestrictedPartitions(5,[3,2,1],4).list()
    28412831        [[2, 1, 1, 1]]
    28422832    """
    2843     import warnings
    2844     warnings.resetwarnings()
    2845     warnings.warn('RestrictedPartitions is deprecated; use Partitions with the parts_in keyword instead.', DeprecationWarning, stacklevel=2)
    2846     from sage.misc.misc import deprecation
    2847     deprecation('RestrictedPartitions is deprecated; use Partitions with the parts_in keyword instead.')
     2833    from sage.misc.superseded import deprecation
     2834    deprecation(5478, 'RestrictedPartitions is deprecated; use Partitions with the parts_in keyword instead.')
    28482835    return RestrictedPartitions_nsk(n, S, k)
    28492836
    28502837class RestrictedPartitions_nsk(CombinatorialClass):
     
    28622849            sage: r == loads(dumps(r))
    28632850            True
    28642851        """
    2865         import warnings
    2866         warnings.resetwarnings()
    2867         warnings.warn('RestrictedPartitions_nsk is deprecated; use Partitions with the parts_in keyword instead.', DeprecationWarning, stacklevel=2)
    2868         from sage.misc.misc import deprecation
    2869         deprecation('RestrictedPartitions_nsk is deprecated; use Partitions with the parts_in keyword instead.')
     2852        from sage.misc.superseded import deprecation
     2853        deprecation(5478, 'RestrictedPartitions_nsk is deprecated; use Partitions with the parts_in keyword instead.')
    28702854        self.n = n
    28712855        self.S = S
    28722856        self.S.sort()
     
    46824666        **
    46834667        *       
    46844668    """
    4685     from sage.misc.misc import deprecation
    4686     deprecation('"ferrers_diagram deprecated. Use Partition(pi).ferrers_diagram() instead')
     4669    from sage.misc.superseded import deprecation
     4670    deprecation(5790, '"ferrers_diagram deprecated. Use Partition(pi).ferrers_diagram() instead')
    46874671    return Partition(pi).ferrers_diagram()
    46884672
    46894673
     
    50315015
    50325016    - http://en.wikipedia.org/wiki/Zolotarev's_lemma
    50335017    """
    5034     from sage.misc.misc import deprecation
    5035     deprecation('"partition_sign deprecated. Use Partition(pi).sign() instead')
     5018    from sage.misc.superseded import deprecation
     5019    deprecation(5790, '"partition_sign deprecated. Use Partition(pi).sign() instead')
    50365020    return Partition(pi).sign()
    50375021
    50385022def partition_associated(pi):
     
    50615045        *
    50625046        *
    50635047    """
    5064     from sage.misc.misc import deprecation
    5065     deprecation('"partition_associated deprecated. Use Partition(pi).conjugte() instead')
     5048    from sage.misc.superseded import deprecation
     5049    deprecation(5790, '"partition_associated deprecated. Use Partition(pi).conjugte() instead')
    50665050    return Partition(pi).conjugate()
    50675051
  • sage/combinat/posets/all.py

    diff --git a/sage/combinat/posets/all.py b/sage/combinat/posets/all.py
    a b  
    1111##### Added 28 April 2009 #################################################
    1212###########################################################################
    1313
    14 from sage.misc.misc import deprecation
     14from sage.misc.superseded import deprecation
    1515
    1616def BooleanLattice(*args, **kwds):
    1717    r"""
     
    2424        doctest:1: DeprecationWarning: BooleanLattice is deprecated, use Posets.BooleanLattice instead!
    2525        Finite lattice containing 8 elements
    2626    """
    27     deprecation("%s is deprecated, use Posets.%s instead!" % \
     27    deprecation(10998, "%s is deprecated, use Posets.%s instead!" % \
    2828           ("BooleanLattice", "BooleanLattice"))
    2929    return Posets.BooleanLattice(*args, **kwds)
    3030
     
    3939        doctest:1: DeprecationWarning: ChainPoset is deprecated, use Posets.ChainPoset instead!
    4040        Finite lattice containing 3 elements
    4141    """
    42     deprecation("%s is deprecated, use Posets.%s instead!" % \
     42    deprecation(10998, "%s is deprecated, use Posets.%s instead!" % \
    4343           ("ChainPoset","ChainPoset"))
    4444    return Posets.ChainPoset(*args, **kwds)
    4545
     
    5454        doctest:1: DeprecationWarning: AntichainPoset is deprecated, use Posets.AntichainPoset instead!
    5555        Finite poset containing 3 elements
    5656    """
    57     deprecation("%s is deprecated, use Posets.%s instead!" % \
     57    deprecation(10998, "%s is deprecated, use Posets.%s instead!" % \
    5858           ("AntichainPoset","AntichainPoset"))
    5959    return Posets.AntichainPoset(*args, **kwds)
    6060
     
    6969        doctest:1: DeprecationWarning: PentagonPoset is deprecated, use Posets.PentagonPoset instead!
    7070        Finite lattice containing 5 elements
    7171    """
    72     deprecation("%s is deprecated, use Posets.%s instead!" % \
     72    deprecation(10998, "%s is deprecated, use Posets.%s instead!" % \
    7373           ("PentagonPoset","PentagonPoset"))
    7474    return Posets.PentagonPoset(*args, **kwds)
    7575
     
    8484        doctest:1: DeprecationWarning: DiamondPoset is deprecated, use Posets.DiamondPoset instead!
    8585        Finite lattice containing 3 elements
    8686    """
    87     deprecation("%s is deprecated, use Posets.%s instead!" % \
     87    deprecation(10998, "%s is deprecated, use Posets.%s instead!" % \
    8888           ("DiamondPoset","DiamondPoset"))
    8989    return Posets.DiamondPoset(*args, **kwds)
    9090
     
    9999        doctest:1: DeprecationWarning: PosetOfIntegerCompositions is deprecated, use Posets.IntegerCompositions instead!
    100100        Finite poset containing 4 elements
    101101    """
    102     deprecation("%s is deprecated, use Posets.%s instead!" % \
     102    deprecation(10998, "%s is deprecated, use Posets.%s instead!" % \
    103103           ("PosetOfIntegerCompositions","IntegerCompositions"))
    104104    return Posets.IntegerCompositions(*args, **kwds)
    105105
     
    114114        doctest:1: DeprecationWarning: PosetOfIntegerPartitions is deprecated, use Posets.IntegerPartitions instead!
    115115        Finite poset containing 3 elements
    116116    """
    117     deprecation("%s is deprecated, use Posets.%s instead!" % \
     117    deprecation(10998, "%s is deprecated, use Posets.%s instead!" % \
    118118           ("PosetOfIntegerPartitions","IntegerPartitions"))
    119119    return Posets.IntegerPartitions(*args, **kwds)
    120120
     
    129129        doctest:1: DeprecationWarning: PosetOfRestrictedIntegerPartitions is deprecated, use Posets.RestrictedIntegerPartitions instead!
    130130        Finite poset containing 3 elements
    131131    """
    132     deprecation("%s is deprecated, use Posets.%s instead!" % \
     132    deprecation(10998, "%s is deprecated, use Posets.%s instead!" % \
    133133           ("PosetOfRestrictedIntegerPartitions","RestrictedIntegerPartitions"))
    134134    return Posets.RestrictedIntegerPartitions(*args, **kwds)
    135135
     
    144144        doctest:1: DeprecationWarning: RandomPoset is deprecated, use Posets.RandomPoset instead!
    145145        Finite poset containing 17 elements
    146146    """
    147     deprecation("%s is deprecated, use Posets.%s instead!" % \
     147    deprecation(10998, "%s is deprecated, use Posets.%s instead!" % \
    148148           ("RandomPoset","RandomPoset"))
    149149    return Posets.RandomPoset(*args, **kwds)
    150150
     
    160160        doctest:1: DeprecationWarning: SymmetricGroupBruhatOrderPoset is deprecated, use Posets.SymmetricGroupBruhatOrderPoset instead!
    161161        Finite poset containing 6 elements
    162162    """
    163     deprecation("%s is deprecated, use Posets.%s instead!" % \
     163    deprecation(10998, "%s is deprecated, use Posets.%s instead!" % \
    164164           ("SymmetricGroupBruhatOrderPoset","SymmetricGroupBruhatOrderPoset"))
    165165    return Posets.SymmetricGroupBruhatOrderPoset(*args, **kwds)
    166166
     
    175175        doctest:1: DeprecationWarning: SymmetricGroupWeakOrderPoset is deprecated, use Posets.SymmetricGroupWeakOrderPoset instead!
    176176        Finite poset containing 6 elements
    177177    """
    178     deprecation("%s is deprecated, use Posets.%s instead!" % \
     178    deprecation(10998, "%s is deprecated, use Posets.%s instead!" % \
    179179           ("SymmetricGroupWeakOrderPoset","SymmetricGroupWeakOrderPoset"))
    180180    return Posets.SymmetricGroupWeakOrderPoset(*args, **kwds)
  • sage/combinat/posets/hasse_diagram.py

    diff --git a/sage/combinat/posets/hasse_diagram.py b/sage/combinat/posets/hasse_diagram.py
    a b  
    12691269            doctest:1: DeprecationWarning: is_distributive_lattice_fastest is deprecated, use is_distributive_lattice instead!
    12701270            False
    12711271        """
    1272         from sage.misc.misc import deprecation
    1273         deprecation("is_distributive_lattice_fastest is deprecated, use is_distributive_lattice instead!")
     1272        from sage.misc.superseded import deprecation
     1273        deprecation(5918, "is_distributive_lattice_fastest is deprecated, use is_distributive_lattice instead!")
    12741274        return self.is_distributive_lattice()
    12751275
    12761276    def is_complemented_lattice(self):
  • sage/combinat/posets/posets.py

    diff --git a/sage/combinat/posets/posets.py b/sage/combinat/posets/posets.py
    a b  
    2525import copy
    2626from sage.misc.cachefunc import cached_method
    2727from sage.misc.lazy_attribute import lazy_attribute
    28 from sage.misc.misc import deprecated_function_alias
     28from sage.misc.superseded import deprecated_function_alias
    2929from sage.categories.category import Category
    3030from sage.categories.sets_cat import Sets
    3131from sage.categories.finite_enumerated_sets import FiniteEnumeratedSets
     
    896896            return self._list[self._element_to_vertex_dict[element]]
    897897        except KeyError:
    898898            if isinstance(element,Integer):
    899                 import sage.misc.misc
    900                 sage.misc.misc.deprecation("Accessing the i-th element of a poset as P(i) is deprecated. Please use P[i]")
     899                from sage.misc.superseded import deprecation
     900                deprecation(13109, "Accessing the i-th element of a poset as P(i) is deprecated. Please use P[i]")
    901901                if element > -1:
    902902                    return self.element_class(self, \
    903903                        self._elements[element], element)
     
    18711871        """
    18721872        return Integer(self._hasse_diagram.order())
    18731873
    1874     size = deprecated_function_alias(cardinality, 'Sage Version 4.4 (2010-05)')
     1874    size = deprecated_function_alias(8735, cardinality)
    18751875
    18761876    def mobius_function(self,x,y):
    18771877        r"""
  • sage/combinat/root_system/dynkin_diagram.py

    diff --git a/sage/combinat/root_system/dynkin_diagram.py b/sage/combinat/root_system/dynkin_diagram.py
    a b  
    8888        1   2   3
    8989        A3
    9090    """
    91     from sage.misc.misc import deprecation
    92     deprecation("dynkin_diagram is deprecated, use DynkinDiagram instead!")
     91    from sage.misc.superseded import deprecation
     92    deprecation(3654, "dynkin_diagram is deprecated, use DynkinDiagram instead!")
    9393    return DynkinDiagram(t)
    9494
    9595
  • sage/combinat/root_system/root_lattice_realizations.py

    diff --git a/sage/combinat/root_system/root_lattice_realizations.py b/sage/combinat/root_system/root_lattice_realizations.py
    a b  
    2727from sage.sets.family import Family
    2828from sage.rings.all import ZZ, QQ
    2929from sage.combinat.backtrack import TransitiveIdeal
    30 from sage.misc.misc import deprecated_function_alias
     30from sage.misc.superseded import deprecated_function_alias
    3131from copy import copy
    3232
    3333class RootLatticeRealizations(Category_over_base_ring):
     
    934934            """
    935935            # _test_not_implemented_methods apparently evaluates all lazy
    936936            # attributes, which means that we can't use deprecation here!
    937             # from sage.misc.misc import deprecation
    938             # deprecation("The lazy attribute pi is deprecated; please use the simple_projections method.", 'Sage Version 5.0')
     937            # from sage.misc.superseded import deprecation
     938            # deprecation(trac_number, "The lazy attribute pi is deprecated; please use the simple_projections method.")
    939939            return self.simple_projections()
    940940
    941941        ##########################################################################
     
    14621462                        direction.append(i)
    14631463                    self = self.simple_reflection(i)
    14641464 
    1465         to_positive_chamber = deprecated_function_alias(to_dominant_chamber, "Sage 4.8")
     1465        to_positive_chamber = deprecated_function_alias(12667, to_dominant_chamber)
    14661466
    14671467        def reduced_word(self, index_set = None, positive = True):
    14681468            r"""
  • sage/combinat/root_system/weyl_group.py

    diff --git a/sage/combinat/root_system/weyl_group.py b/sage/combinat/root_system/weyl_group.py
    a b  
    4242from sage.interfaces.gap import gap
    4343#from sage.misc.cache import Cache
    4444from sage.misc.cachefunc import cached_method, ClearCacheOnPickle
    45 from sage.misc.misc import deprecated_function_alias
     45from sage.misc.superseded import deprecated_function_alias
    4646from sage.combinat.root_system.cartan_type import CartanType
    4747from sage.matrix.constructor import matrix, diagonal_matrix
    4848from sage.combinat.root_system.root_lattice_realizations import RootLatticeRealizations
     
    501501        """
    502502        return self._domain
    503503
    504     lattice = deprecated_function_alias(domain, 'Sage Version 4.3.4')
     504    lattice = deprecated_function_alias(8414, domain)
    505505
    506506    def simple_reflection(self, i):
    507507        """
  • sage/combinat/skew_partition.py

    diff --git a/sage/combinat/skew_partition.py b/sage/combinat/skew_partition.py
    a b  
    471471
    472472
    473473    def r_quotient(self, length):
    474       """ *** deprecate *** """
    475       from sage.misc.misc import deprecation
    476       deprecation('r_quotient is deprecated. Use quotient instead.')
    477       return self.quotient(self,length)
     474      """
     475      This method is deprecated.
     476
     477      EXAMPLES::
     478
     479          sage: SkewPartition([[3, 3, 2, 1], [2, 1]]).r_quotient(2)
     480      """
     481      from sage.misc.superseded import deprecation
     482      deprecation(5790, 'r_quotient is deprecated. Use quotient instead.')
     483      return self.quotient(length)
    478484
    479485    def quotient(self, k):
    480486        """
  • sage/combinat/words/abstract_word.py

    diff --git a/sage/combinat/words/abstract_word.py b/sage/combinat/words/abstract_word.py
    a b  
    12551255            Ordered Alphabet ['4', '5', '6']
    12561256
    12571257        """
    1258         from sage.misc.misc import deprecation
    1259         deprecation("alphabet() is deprecated, use parent().alphabet() instead")
     1258        from sage.misc.superseded import deprecation
     1259        deprecation(8429, "alphabet() is deprecated, use parent().alphabet() instead")
    12601260        return self.parent().alphabet()
    12611261
    12621262    def _partial_sums_iterator(self, start, mod=None):
  • sage/combinat/words/alphabet.py

    diff --git a/sage/combinat/words/alphabet.py b/sage/combinat/words/alphabet.py
    a b  
    8585            doctest:1: DeprecationWarning: string_rep is deprecated, use __repr__ instead!
    8686            'Ordered Alphabet [1, 3, 2]'
    8787        """
    88         from sage.misc.misc import deprecation
    89         deprecation("string_rep is deprecated, use __repr__ instead!")
     88        from sage.misc.superseded import deprecation
     89        deprecation(6519, "string_rep is deprecated, use __repr__ instead!")
    9090        return self.__repr__()
    9191
    9292class OrderedAlphabet_Finite(OrderedAlphabet_class):
  • sage/combinat/words/finite_word.py

    diff --git a/sage/combinat/words/finite_word.py b/sage/combinat/words/finite_word.py
    a b  
    595595            sage: y.size_of_alphabet()
    596596            3
    597597        """
    598         from sage.misc.misc import deprecation
    599         deprecation("size_of_alphabet() is deprecated, use parent().size_of_alphabet() instead!")
     598        from sage.misc.superseded import deprecation
     599        deprecation(8429, "size_of_alphabet() is deprecated, use parent().size_of_alphabet() instead!")
    600600        return self.parent().size_of_alphabet()
    601601
    602602    ###########################################################################
     
    625625            sage: Word().is_suffix_of(Word())
    626626            True
    627627        """
    628         from sage.misc.misc import deprecation
    629         deprecation("is_suffix_of is deprecated, use is_suffix instead!")
     628        from sage.misc.superseded import deprecation
     629        deprecation(8429, "is_suffix_of is deprecated, use is_suffix instead!")
    630630        return self.is_suffix(other)
    631631
    632632    def is_proper_suffix_of(self, other):
     
    646646            sage: Word('123').is_proper_suffix_of(Word('12'))
    647647            False
    648648        """
    649         from sage.misc.misc import deprecation
    650         deprecation("is_proper_suffix_of is deprecated, use is_proper_suffix instead!")
     649        from sage.misc.superseded import deprecation
     650        deprecation(8429, "is_proper_suffix_of is deprecated, use is_proper_suffix instead!")
    651651        return self.is_proper_suffix(other)
    652652
    653653    def is_prefix_of(self, other):
     
    670670            sage: Word().is_prefix_of(Word())
    671671            True
    672672        """
    673         from sage.misc.misc import deprecation
    674         deprecation("is_prefix_of is deprecated, use is_prefix instead!")
     673        from sage.misc.superseded import deprecation
     674        deprecation(8429, "is_prefix_of is deprecated, use is_prefix instead!")
    675675        return self.is_prefix(other)
    676676
    677677    def is_proper_prefix_of(self, other):
     
    693693            sage: Word().is_proper_prefix_of(Word())
    694694            False
    695695        """
    696         from sage.misc.misc import deprecation
    697         deprecation("is_proper_prefix_of is deprecated, use is_proper_prefix instead!")
     696        from sage.misc.superseded import deprecation
     697        deprecation(8429, "is_proper_prefix_of is deprecated, use is_proper_prefix instead!")
    698698        return self.is_proper_prefix(other)
    699699
    700700    # To fix : do not slice here ! (quite expensive in copy)
     
    15731573            sage: Word('abbabaab')._lps(f=f)
    15741574            word: abbabaab
    15751575        """
    1576         from sage.misc.misc import deprecation
    1577         deprecation("_lps is deprecated, use lps instead!")
     1576        from sage.misc.superseded import deprecation
     1577        deprecation(8429, "_lps is deprecated, use lps instead!")
    15781578        return self.lps(l=l, f=f)
    15791579
    15801580    def lps(self, f=None, l=None):
     
    29932993            doctest:1: DeprecationWarning: last_position_table is deprecated, use last_position_dict instead!
    29942994            {'1': 3, '3': 5, '2': 6}
    29952995        """
    2996         from sage.misc.misc import deprecation
    2997         deprecation("last_position_table is deprecated, use last_position_dict instead!")
     2996        from sage.misc.superseded import deprecation
     2997        deprecation(8429, "last_position_table is deprecated, use last_position_dict instead!")
    29982998        lpd = self.last_position_dict()
    29992999        if self.parent().size_of_alphabet() in ZZ:
    30003000            return [lpd.get(a,-1) for a in self.parent().alphabet()]
     
    32003200            sage: u.is_factor_of(w)
    32013201            False
    32023202        """
    3203         from sage.misc.misc import deprecation
    3204         deprecation("is_factor_of is deprecated, use is_factor instead!")
     3203        from sage.misc.superseded import deprecation
     3204        deprecation(8429, "is_factor_of is deprecated, use is_factor instead!")
    32053205        return self.is_factor(other)
    32063206
    32073207    def is_factor(self, other):
     
    34813481            sage: l
    34823482            [word: aba, word: abaaba, word: abaababaaba]
    34833483        """
    3484         from sage.misc.misc import deprecation
    3485         deprecation("_quasiperiods_list is deprecated, use quasiperiods instead!")
     3484        from sage.misc.superseded import deprecation
     3485        deprecation(8429, "_quasiperiods_list is deprecated, use quasiperiods instead!")
    34863486        return self.quasiperiods()
    34873487
    34883488    def quasiperiods(self):
     
    36143614            sage: f['3'] == 1
    36153615            True
    36163616        """
    3617         from sage.misc.misc import deprecation
    3618         deprecation("freq is deprecated, use evaluation_dict instead!")
     3617        from sage.misc.superseded import deprecation
     3618        deprecation(8429, "freq is deprecated, use evaluation_dict instead!")
    36193619        return self.evaluation_dict()
    36203620
    36213621    def evaluation_dict(self):
     
    42554255        -   A. de Luca, A. De Luca, Pseudopalindrome closure operators
    42564256            in free monoids, Theoret. Comput. Sci. 362 (2006) 282--300.     
    42574257        """
    4258         from sage.misc.misc import deprecation
    4259         deprecation("iterated_palindromic_closure is deprecated, "
     4258        from sage.misc.superseded import deprecation
     4259        deprecation(8429, "iterated_palindromic_closure is deprecated, "
    42604260                   +"use iterated_left_palindromic_closure or "
    42614261                   +"iterated_right_palindromic_closure instead!")
    42624262
     
    51225122            [(word: 12, word: 2), (word: 1, word: 13), (word: 1, word: 122)]
    51235123
    51245124        """
    5125         from sage.misc.misc import deprecation
    5126         deprecation("standard_factorization_of_lyndon_factorization(): is "
     5125        from sage.misc.superseded import deprecation
     5126        deprecation(12469, "standard_factorization_of_lyndon_factorization(): is "
    51275127                    "deprecated since March 2012 and will be removed in "
    51285128                    "a later version of Sage.")
    51295129        return [x.standard_factorization() for x in self.lyndon_factorization()]
  • sage/combinat/words/morphism.py

    diff --git a/sage/combinat/words/morphism.py b/sage/combinat/words/morphism.py
    a b  
    9292from sage.combinat.words.word import FiniteWord_class
    9393from sage.combinat.words.words import Words_all, Words
    9494from sage.sets.set import Set
    95 from sage.misc.misc import deprecated_function_alias
     95from sage.misc.superseded import deprecated_function_alias
    9696
    9797class CallableDict(dict):
    9898    r"""
     
    15701570                else:
    15711571                    raise StopIteration
    15721572
    1573     letter_iterator = deprecated_function_alias(_fixed_point_iterator,
    1574         'Sage Version 4.4')
     1573    letter_iterator = deprecated_function_alias(8595, _fixed_point_iterator)
    15751574       
    15761575    def fixed_point(self, letter):
    15771576        r"""
  • sage/combinat/words/word_generators.py

    diff --git a/sage/combinat/words/word_generators.py b/sage/combinat/words/word_generators.py
    a b  
    290290            doctest:1: DeprecationWarning: ChristoffelWord_Lower is deprecated, use LowerChristoffelWord instead
    291291            word: 1
    292292        """
    293         from sage.misc.misc import deprecation
    294         deprecation("ChristoffelWord_Lower is deprecated, use LowerChristoffelWord instead")
     293        from sage.misc.superseded import deprecation
     294        deprecation(6519, "ChristoffelWord_Lower is deprecated, use LowerChristoffelWord instead")
    295295        return LowerChristoffelWord.__new__(cls, *args, **kwds)
    296296
    297297class WordGenerator(object):
  • sage/combinat/words/words.py

    diff --git a/sage/combinat/words/words.py b/sage/combinat/words/words.py
    a b  
    11001100            for w in self.iterate_by_length(l):
    11011101                yield w
    11021102
    1103     @rename_keyword(deprecated='Sage version 4.6.1', l='arg')       
     1103    @rename_keyword(deprecation=10134, l='arg')
    11041104    def iter_morphisms(self, arg=None, codomain=None, min_length=1):
    11051105        r"""
    11061106        Iterate over all morphisms with domain ``self`` and the given
     
    15791579        sage: is_Words(Words('ab'))
    15801580        True
    15811581    """
    1582     from sage.misc.misc import deprecation
    1583     deprecation("is_Words is deprecated, use isinstance(your_object, Words_all) instead!")
     1582    from sage.misc.superseded import deprecation
     1583    deprecation(6519, "is_Words is deprecated, use isinstance(your_object, Words_all) instead!")
    15841584    return isinstance(obj, Words_all)
    15851585
  • sage/combinat/yang_baxter_graph.py

    diff --git a/sage/combinat/yang_baxter_graph.py b/sage/combinat/yang_baxter_graph.py
    a b  
    319319            Yang-Baxter graph with root vertex (1, 0, 2, 1, 0)
    320320        """
    321321        from copy import copy
    322         import sage.misc.misc
    323         sage.misc.misc.deprecation("the .copy() method is deprecated; please use the copy() function instead, for example, copy(g)")
     322        from sage.misc.superseded import deprecation
     323        deprecation(6522, "the .copy() method is deprecated; please use the copy() function instead, for example, copy(g)")
    324324        return copy(self)
    325325
    326326
     
    628628        """
    629629        from copy import copy
    630630        import sage.misc.misc
    631         sage.misc.misc.deprecation("the .copy() method is deprecated; please use the copy() function instead, for example, copy(g)")
     631        sage.misc.misc.deprecation(6522, "the .copy() method is deprecated; please use the copy() function instead, for example, copy(g)")
    632632        return copy(self)
    633633
    634634    @lazy_attribute
  • sage/crypto/mq/mpolynomialsystem.py

    diff --git a/sage/crypto/mq/mpolynomialsystem.py b/sage/crypto/mq/mpolynomialsystem.py
    a b  
    226226        sage: mq.MPolynomialSystem(I.ring(), I.gens())
    227227        Polynomial System with 4 Polynomials in 4 Variables
    228228    """
    229     from sage.misc.misc import deprecation
    230     deprecation("This function is replaced by sage.rings.polynomial.multi_polynomial_sequence.PolynomialSequence.","4.6.2")
     229    from sage.misc.superseded import deprecation
     230    deprecation(1819, "This function is replaced by sage.rings.polynomial.multi_polynomial_sequence.PolynomialSequence.")
    231231
    232232    if is_MPolynomialRing(arg1):
    233233        R = arg1
     
    14791479
    14801480            This function is deprecated use the :meth:`.weil_restriction()` function instead.
    14811481        """
    1482         from sage.misc.misc import deprecation
    1483         deprecation("The use of this function is deprecated please use the weil_restriction() function instead.")
     1482        from sage.misc.superseded import deprecation
     1483        deprecation(5576, "The use of this function is deprecated please use the weil_restriction() function instead.")
    14841484        return self.weil_restriction()
    14851485
    14861486    def weil_restriction(self):
  • sage/databases/all.py

    diff --git a/sage/databases/all.py b/sage/databases/all.py
    a b  
    6565from cremona import CremonaDatabase
    6666
    6767# Trac #10107
    68 from sage.misc.misc import deprecated_callable_import
    69 deprecated_callable_import('sage.databases.cremona', globals(), locals(),
    70                            ['cremona_letter_code', 'parse_cremona_label',
    71                             'old_cremona_letter_code', 'is_optimal_id'])
     68from sage.misc.superseded import deprecated_callable_import
     69deprecated_callable_import(10107, 'sage.databases.cremona', globals(), locals(), [
     70        'cremona_letter_code', 'parse_cremona_label',
     71        'old_cremona_letter_code', 'is_optimal_id' ])
    7272del deprecated_callable_import
    7373
    7474
  • sage/ext/fast_callable.pyx

    diff --git a/sage/ext/fast_callable.pyx b/sage/ext/fast_callable.pyx
    a b  
    409409                        vars = ['EXTRA_VAR0']
    410410                else:
    411411                    if _autocompute_vars_for_backward_compatibility_with_deprecated_fast_float_functionality:
    412                         from sage.misc.misc import deprecation
    413                         deprecation("Substitution using function-call syntax and unnamed arguments is deprecated and will be removed from a future release of Sage; you can use named arguments instead, like EXPR(x=..., y=...)")
     412                        from sage.misc.superseded import deprecation
     413                        deprecation(5413, "Substitution using function-call syntax and unnamed arguments is deprecated and will be removed from a future release of Sage; you can use named arguments instead, like EXPR(x=..., y=...)")
    414414                    else:
    415415                        raise ValueError, "List of variables must be specified for symbolic expressions"
    416416            from sage.rings.all import is_PolynomialRing, is_MPolynomialRing
  • sage/finance/easter.py

    diff --git a/sage/finance/easter.py b/sage/finance/easter.py
    a b  
    1616EASTER_ORTHODOX = 2
    1717EASTER_WESTERN  = 3
    1818
    19 @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     19@rename_keyword(deprecation=6094, method="algorithm")
    2020def easter(year, algorithm=EASTER_WESTERN):
    2121    """
    2222    This function was ported from the work done by GM Arts,
  • sage/functions/log.py

    diff --git a/sage/functions/log.py b/sage/functions/log.py
    a b  
    126126            7.3890560989306502272304274606
    127127        """
    128128        if prec is not None:
    129             from sage.misc.misc import deprecation
    130             deprecation("The prec keyword argument is deprecated. Explicitly set the precision of the input, for example exp(RealField(300)(1)), or use the prec argument to .n() for exact inputs, e.g., exp(1).n(300), instead.")
     129            from sage.misc.superseded import deprecation
     130            deprecation(7490, "The prec keyword argument is deprecated. Explicitly set the precision of the input, for example exp(RealField(300)(1)), or use the prec argument to .n() for exact inputs, e.g., exp(1).n(300), instead.")
    131131            x = GinacFunction.__call__(self, x, coerce=coerce, hold=hold,
    132132                    dont_call_method_on_arg=dont_call_method_on_arg)
    133133            return x.n(prec)
  • sage/functions/other.py

    diff --git a/sage/functions/other.py b/sage/functions/other.py
    a b  
    759759            1.2254167024651776451290983034
    760760        """
    761761        if prec is not None:
    762             from sage.misc.misc import deprecation
    763             deprecation("The prec keyword argument is deprecated. Explicitly set the precision of the input, for example gamma(RealField(300)(1)), or use the prec argument to .n() for exact inputs, e.g., gamma(1).n(300), instead.")
     762            from sage.misc.superseded import deprecation
     763            deprecation(7490, "The prec keyword argument is deprecated. Explicitly set the precision of the input, for example gamma(RealField(300)(1)), or use the prec argument to .n() for exact inputs, e.g., gamma(1).n(300), instead.")
    764764            import mpmath
    765765            return mpmath_utils.call(mpmath.gamma, x, prec=prec)
    766766
     
    778778            if not str(err).startswith("cannot coerce"):
    779779                raise
    780780
    781             from sage.misc.misc import deprecation
    782             deprecation("Calling symbolic functions with arguments that cannot be coerced into symbolic expressions is deprecated.")
     781            from sage.misc.superseded import deprecation
     782            deprecation(7490, "Calling symbolic functions with arguments that cannot be coerced into symbolic expressions is deprecated.")
    783783            parent = RR if prec is None else RealField(prec)
    784784            try:
    785785                x = parent(x)
  • sage/functions/special.py

    diff --git a/sage/functions/special.py b/sage/functions/special.py
    a b  
    16841684        doctest:...: DeprecationWarning: The method lngamma() is deprecated. Use log_gamma() instead.
    16851685        4.78749174278205
    16861686    """
    1687     from sage.misc.misc import deprecation
    1688     deprecation("The method lngamma() is deprecated. Use log_gamma() instead.")
     1687    from sage.misc.superseded import deprecation
     1688    deprecation(6992, "The method lngamma() is deprecated. Use log_gamma() instead.")
    16891689    return log_gamma(t)
    16901690
    16911691def exp_int(t):
     
    17001700        doctest:...: DeprecationWarning: The method exp_int() is deprecated. Use -Ei(-x) or exponential_integral_1(x) as needed instead.
    17011701        0.000360082452162659
    17021702    """
    1703     from sage.misc.misc import deprecation
    1704     deprecation("The method exp_int() is deprecated. Use -Ei(-x) or exponential_integral_1(x) as needed instead.")
     1703    from sage.misc.superseded import deprecation
     1704    deprecation(6992, "The method exp_int() is deprecated. Use -Ei(-x) or exponential_integral_1(x) as needed instead.")
    17051705    try:
    17061706        return t.eint1()
    17071707    except AttributeError:
  • sage/functions/transcendental.py

    diff --git a/sage/functions/transcendental.py b/sage/functions/transcendental.py
    a b  
    345345            2.16737827956340306615064476647912607220394065907142504328679588538509331805598360907980986
    346346        """
    347347        if prec is not None:
    348             from sage.misc.misc import deprecation
    349             deprecation("The prec keyword argument is deprecated. Explicitly set the precision of the input, for example Ei(RealField(300)(1)), or use the prec argument to .n() for exact inputs, e.g., Ei(1).n(300), instead.")
     348            from sage.misc.superseded import deprecation
     349            deprecation(7748, "The prec keyword argument is deprecated. Explicitly set the precision of the input, for example Ei(RealField(300)(1)), or use the prec argument to .n() for exact inputs, e.g., Ei(1).n(300), instead.")
    350350           
    351351            import mpmath
    352352            return mpmath_utils.call(mpmath.ei, x, prec=prec)
  • sage/geometry/cone.py

    diff --git a/sage/geometry/cone.py b/sage/geometry/cone.py
    a b  
    211211from sage.graphs.all import DiGraph
    212212from sage.matrix.all import matrix, identity_matrix
    213213from sage.misc.all import cached_method, flatten, latex, prod
    214 from sage.misc.misc import deprecation
     214from sage.misc.superseded import deprecation
    215215from sage.modules.all import span, vector
    216216from sage.rings.all import QQ, RR, ZZ, gcd
    217217from sage.structure.all import SageObject
     
    976976        # generators (may be resolved in 0.16). However, this particular
    977977        # iterator does not really save time or memory, so I think it can just
    978978        # go. -- Andrey Novoseltsev, 2012-03-06.
    979         deprecation("ray_iterator(...) is deprecated!",
    980                     "Sage Version 5.1")
     979        deprecation(12544, "ray_iterator(...) is deprecated!")
    981980        if ray_list is None:
    982981            for ray in self._rays:
    983982                yield ray
     
    10071006            [ 0  1 -1]
    10081007            [ 1  0  0]
    10091008        """
    1010         deprecation("ray_matrix(...) is deprecated, "
    1011                     "please use rays().column_matrix() instead!",
    1012                     "Sage Version 5.1")
     1009        deprecation(12544, "ray_matrix(...) is deprecated, "
     1010                    "please use rays().column_matrix() instead!")
    10131011        return self.rays().column_matrix()
    10141012
    10151013    def ray_set(self):
     
    10301028            ray_set(...) is deprecated, please use rays().set() instead!
    10311029            frozenset([N(0, 1), N(1, 0), N(-1, 0)])
    10321030        """
    1033         deprecation("ray_set(...) is deprecated, "
    1034                     "please use rays().set() instead!",
    1035                     "Sage Version 5.1")
     1031        deprecation(12544, "ray_set(...) is deprecated, "
     1032                    "please use rays().set() instead!")
    10361033        return self.rays().set()
    10371034
    10381035    def rays(self, *args):
     
    10981095            N( 0,  0, 0, 1)
    10991096            in 4-d lattice N
    11001097        """
    1101         deprecation("ray_basis(...) is deprecated, "
    1102                     "please use rays().basis() instead!",
    1103                     "Sage Version 5.1")
     1098        deprecation(12544, "ray_basis(...) is deprecated, "
     1099                    "please use rays().basis() instead!")
    11041100        return self.rays().basis()
    11051101
    11061102    def ray_basis_matrix(self):
     
    11331129            [ 1  1  1  0]
    11341130            [ 1  1  1  1]
    11351131        """
    1136         deprecation("ray_basis_matrix(...) is deprecated, "
    1137                     "please use rays().basis().column_matrix() instead!",
    1138                     "Sage Version 5.1")
     1132        deprecation(12544, "ray_basis_matrix(...) is deprecated, "
     1133                    "please use rays().basis().column_matrix() instead!")
    11391134        return self.rays().basis().column_matrix()
    11401135
    11411136
     
    28722867            sage: fullplane.line_set()
    28732868            frozenset([N(0, 1), N(1, 0)])
    28742869        """
    2875         deprecation("line_set(...) is deprecated, "
    2876                     "please use lines().set() instead!",
    2877                     "Sage Version 5.1")
     2870        deprecation(12544, "line_set(...) is deprecated, "
     2871                    "please use lines().set() instead!")
    28782872        if "_line_set" not in self.__dict__:
    28792873            self._line_set = frozenset(self.lines())
    28802874        return self._line_set
  • sage/geometry/fan.py

    diff --git a/sage/geometry/fan.py b/sage/geometry/fan.py
    a b  
    259259from sage.graphs.all import DiGraph
    260260from sage.matrix.all import matrix
    261261from sage.misc.all import cached_method, flatten, walltime, prod
    262 from sage.misc.misc import deprecation
     262from sage.misc.superseded import deprecation
    263263from sage.modules.all import vector
    264264from sage.rings.all import QQ, RR, ZZ
    265265from sage.structure.all import Sequence
     
    458458        0
    459459    """
    460460    if "discard_warning" in kwds:
    461         deprecation("discard_warning is deprecated, use discard_faces instead.",
    462                     "Sage Version 4.7.2")
     461        deprecation(11627, "discard_warning is deprecated, use discard_faces instead.")
    463462        discard_faces = not discard_warning
    464463        kwds.pop(discard_warning)
    465464    if kwds:
  • sage/geometry/polyhedra.py

    diff --git a/sage/geometry/polyhedra.py b/sage/geometry/polyhedra.py
    a b  
    1 from sage.misc.misc import deprecation
    2 deprecation('The module sage.geometry.polyhedra has been removed, use sage.geometry.polyhedron instead.',
    3             'Sage Version 4.8')
     1from sage.misc.superseded import deprecation
     2deprecation(11634, 'The module sage.geometry.polyhedra has been removed, use sage.geometry.polyhedron instead.')
    43from polyhedron.all import *
  • sage/geometry/polyhedron/base.py

    diff --git a/sage/geometry/polyhedron/base.py b/sage/geometry/polyhedron/base.py
    a b  
    18551855            [[0, [1, 2, 5]], [0, [2, 5, 3]], [0, [5, 3, 4]], [1, [0, 1, 2]],
    18561856             [2, [0, 2, 3]], [3, [0, 3, 4]], [4, [0, 4, 5]], [5, [0, 1, 5]]]
    18571857        """
    1858         from sage.misc.misc import deprecation
    1859         deprecation('This method is deprecated. Use triangulate() instead.', 'Sage Version 4.7.1')
     1858        from sage.misc.superseded import deprecation
     1859        deprecation(11634, 'This method is deprecated. Use triangulate() instead.')
    18601860        try:
    18611861            return self._triangulated_facial_incidences
    18621862        except AttributeError:
     
    19301930            sage: sc
    19311931            Simplicial complex with 13 vertices and 20 facets
    19321932        """
    1933         from sage.misc.misc import deprecation
    1934         deprecation('This method is deprecated. Use triangulate().simplicial_complex() instead.',
    1935                     'Sage Version 4.7.1')
     1933        from sage.misc.superseded import deprecation
     1934        deprecation(11634, 'This method is deprecated. Use triangulate().simplicial_complex() instead.')
    19361935        from sage.homology.simplicial_complex import SimplicialComplex
    19371936        return SimplicialComplex(vertex_set = self.n_vertices(),
    19381937                                 maximal_faces = [x[1] for x in self.triangulated_facial_incidences()])
     
    20532052            The function union is replaced by convex_hull.
    20542053            A 1-dimensional polyhedron in QQ^1 defined as the convex hull of 2 vertices
    20552054        """
    2056         from sage.misc.misc import deprecation
    2057         deprecation('The function union is replaced by convex_hull.', 'Sage Version 4.4.4')
     2055        from sage.misc.superseded import deprecation
     2056        deprecation(11634, 'The function union is replaced by convex_hull.')
    20582057        return self.convex_hull(other)
    20592058
    20602059
  • sage/geometry/polyhedron/constructor.py

    diff --git a/sage/geometry/polyhedron/constructor.py b/sage/geometry/polyhedron/constructor.py
    a b  
    115115
    116116
    117117#########################################################################
    118 @rename_keyword(deprecated='Sage version 4.7.2', field='base_ring')
     118@rename_keyword(deprecation=11634, field='base_ring')
    119119def Polyhedron(vertices=None, rays=None, lines=None,
    120120               ieqs=None, eqns=None,
    121121               base_ring=QQ, minimize=True, verbose=False,
  • sage/geometry/polyhedron/library.py

    diff --git a/sage/geometry/polyhedron/library.py b/sage/geometry/polyhedron/library.py
    a b  
    111111            return 0
    112112
    113113
    114     @rename_keyword(deprecated='Sage version 4.7.2', field='base_ring')
     114    @rename_keyword(deprecation=11634, field='base_ring')
    115115    def regular_polygon(self, n, base_ring=QQ):
    116116        """
    117117        Return a regular polygon with n vertices.  Over the rational
     
    189189        return Polyhedron(vertices=verts)
    190190
    191191
    192     @rename_keyword(deprecated='Sage version 4.7.2', field='base_ring')
     192    @rename_keyword(deprecation=11634, field='base_ring')
    193193    def icosahedron(self, base_ring=QQ):
    194194        """
    195195        Return an icosahedron with edge length 1.
     
    229229        return Polyhedron(vertices=verts, base_ring=base_ring)
    230230
    231231
    232     @rename_keyword(deprecated='Sage version 4.7.2', field='base_ring')
     232    @rename_keyword(deprecation=11634, field='base_ring')
    233233    def dodecahedron(self, base_ring=QQ):
    234234        """
    235235        Return a dodecahedron.
     
    271271        return Polyhedron(vertices=verts)
    272272
    273273
    274     @rename_keyword(deprecated='Sage version 4.7.2', field='base_ring')
     274    @rename_keyword(deprecation=11634, field='base_ring')
    275275    def great_rhombicuboctahedron(self, base_ring=QQ):
    276276        """
    277277        Return an Archimedean solid with 48 vertices and 26 faces.
     
    340340        return Polyhedron(vertices=v)
    341341
    342342
    343     @rename_keyword(deprecated='Sage version 4.7.2', field='base_ring')
     343    @rename_keyword(deprecation=11634, field='base_ring')
    344344    def buckyball(self, base_ring=QQ):
    345345        """
    346346        Also known as the truncated icosahedron, an Archimedean solid.
     
    468468        return Polyhedron(vertices=verts)
    469469
    470470
    471     @rename_keyword(deprecated='Sage version 4.7.2', field='base_ring')
     471    @rename_keyword(deprecation=11634, field='base_ring')
    472472    def cyclic_polytope(self, dim_n, points_n, base_ring=QQ):
    473473        """
    474474        Return a cyclic polytope.
  • sage/graphs/base/graph_backends.py

    diff --git a/sage/graphs/base/graph_backends.py b/sage/graphs/base/graph_backends.py
    a b  
    504504            doctest:...
    505505            <class 'sage.graphs.base.graph_backends.NetworkXGraphDeprecated'>
    506506        """
    507         from sage.misc.misc import deprecation
    508         deprecation("Your graph object is saved in an old format since networkx "+
     507        from sage.misc.superseded import deprecation
     508        deprecation(10900, "Your graph object is saved in an old format since networkx "+
    509509                    "was updated to 1.0.1. You can re-save your graph by typing "+
    510510                    "graph.save(filename) to make this warning go away.")
    511511
     
    572572            doctest:...
    573573            <class 'sage.graphs.base.graph_backends.NetworkXDiGraphDeprecated'>
    574574        """
    575         from sage.misc.misc import deprecation
    576         deprecation("Your digraph object is saved in an old format since networkx "+
     575        from sage.misc.superseded import deprecation
     576        deprecation(10900, "Your digraph object is saved in an old format since networkx "+
    577577                    "was updated to 1.0.1. You can re-save your digraph by typing "+
    578578                    "digraph.save(filename) to make this warning go away.")
    579579
  • sage/graphs/digraph.py

    diff --git a/sage/graphs/digraph.py b/sage/graphs/digraph.py
    a b  
    9191"""
    9292
    9393from sage.rings.integer import Integer
    94 from sage.misc.misc import deprecated_function_alias
     94from sage.misc.superseded import deprecated_function_alias
    9595import sage.graphs.generic_graph_pyx as generic_graph_pyx
    9696from sage.graphs.generic_graph import GenericGraph
    9797from sage.graphs.dot2tex_utils import have_dot2tex
     
    11511151        """
    11521152        return iter(set(self._backend.iterator_in_nbrs(vertex)))
    11531153
    1154     predecessor_iterator = deprecated_function_alias(neighbor_in_iterator, 'Sage Version 4.3')
     1154    predecessor_iterator = deprecated_function_alias(7634, neighbor_in_iterator)
    11551155
    11561156    def neighbors_in(self, vertex):
    11571157        """
     
    11671167        """
    11681168        return list(self.neighbor_in_iterator(vertex))
    11691169
    1170     predecessors = deprecated_function_alias(neighbors_in, 'Sage Version 4.3')
     1170    predecessors = deprecated_function_alias(7634, neighbors_in)
    11711171
    11721172    def neighbor_out_iterator(self, vertex):
    11731173        """
     
    11861186        """
    11871187        return iter(set(self._backend.iterator_out_nbrs(vertex)))
    11881188
    1189     successor_iterator = deprecated_function_alias(neighbor_out_iterator, 'Sage Version 4.3')
     1189    successor_iterator = deprecated_function_alias(7634, neighbor_out_iterator)
    11901190
    11911191    def neighbors_out(self, vertex):
    11921192        """
     
    12021202        """
    12031203        return list(self.neighbor_out_iterator(vertex))
    12041204
    1205     successors = deprecated_function_alias(neighbors_out, 'Sage Version 4.3')
     1205    successors = deprecated_function_alias(7634, neighbors_out)
    12061206
    12071207    ### Degree functions
    12081208
  • sage/graphs/generic_graph.py

    diff --git a/sage/graphs/generic_graph.py b/sage/graphs/generic_graph.py
    a b  
    15531553            []
    15541554
    15551555        """
    1556         from sage.misc.misc import deprecation
     1556        from sage.misc.superseded import deprecation
    15571557        if new is not None:
    1558             deprecation("The function loops is replaced by allow_loops and allows_loops.")
     1558            deprecation(7634, "The function loops is replaced by allow_loops and allows_loops.")
    15591559        loops = []
    15601560        for v in self:
    15611561            loops += self.edge_boundary([v], [v], labels)
     
    17991799            sage: G.multiple_edges(to_undirected=True)
    18001800            [(1, 2, 'h'), (2, 1, 'g')]
    18011801        """
    1802         from sage.misc.misc import deprecation
     1802        from sage.misc.superseded import deprecation
    18031803        if new is not None:
    1804             deprecation("The function multiple_edges is replaced by allow_multiple_edges and allows_multiple_edges.")
     1804            deprecation(7634, "The function multiple_edges is replaced by allow_multiple_edges and allows_multiple_edges.")
    18051805        multi_edges = []
    18061806        if self._directed and not to_undirected:
    18071807            for v in self:
  • sage/graphs/graph.py

    diff --git a/sage/graphs/graph.py b/sage/graphs/graph.py
    a b  
    37813781            [[4, 0], [4, 1, 2, 3]]
    37823782
    37833783        """
    3784         from sage.misc.misc import deprecation
    3785         deprecation("The function 'cliques' has been deprecated. Use " + \
     3784        from sage.misc.superseded import deprecation
     3785        deprecation(5793, "The function 'cliques' has been deprecated. Use " + \
    37863786                    "'cliques_maximal' or 'cliques_maximum'.")
    37873787        return self.cliques_maximal()
    37883788       
  • sage/graphs/graph_generators.py

    diff --git a/sage/graphs/graph_generators.py b/sage/graphs/graph_generators.py
    a b  
    77217721          pages 306-324.
    77227722        """
    77237723        from sage.graphs.all import Graph
    7724         from sage.misc.misc import deprecation
     7724        from sage.misc.superseded import deprecation
    77257725        from copy import copy as copyfun
    77267726
    77277727        if deg_seq is not None:
    7728             deprecation("The argument name deg_seq is deprecated. It will be "
     7728            deprecation(11927, "The argument name deg_seq is deprecated. It will be "
    77297729                        "removed in a future release of Sage. So, please use "
    77307730                        "degree_sequence instead.") 
    77317731        if degree_sequence is None:
  • sage/groups/matrix_gps/matrix_group.py

    diff --git a/sage/groups/matrix_gps/matrix_group.py b/sage/groups/matrix_gps/matrix_group.py
    a b  
    838838        self._gensG = v
    839839        MatrixGroup_gap.__init__(self, M.nrows(), M.base_ring(), category = category)
    840840
    841     @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     841    @rename_keyword(deprecation=6094, method="algorithm")
    842842    def as_permutation_group(self, algorithm=None):
    843843        r"""
    844844        Return a permutation group representation for the group.
     
    921921            C = gap("Image( iso )")
    922922        return PermutationGroup(gap_group=C)
    923923
    924     @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     924    @rename_keyword(deprecation=6094, method="algorithm")
    925925    def module_composition_factors(self, algorithm=None):
    926926        r"""
    927927        Returns a list of triples consisting of [base field, dimension,
  • sage/groups/perm_gps/permgroup.py

    diff --git a/sage/groups/perm_gps/permgroup.py b/sage/groups/perm_gps/permgroup.py
    a b  
    18001800            doctest:...: DeprecationWarning: quotient_group() is deprecated; use quotient() instead.
    18011801            Permutation Group with generators [(1,2)]
    18021802        """
    1803         from sage.misc.misc import deprecation
    1804         deprecation('quotient_group() is deprecated; use quotient() instead.')
     1803        from sage.misc.superseded import deprecation
     1804        deprecation(7371, 'quotient_group() is deprecated; use quotient() instead.')
    18051805        return self.quotient(N)
    18061806
    18071807    def commutator(self, other=None):
  • sage/groups/perm_gps/permgroup_morphism.py

    diff --git a/sage/groups/perm_gps/permgroup_morphism.py b/sage/groups/perm_gps/permgroup_morphism.py
    a b  
    3737#                  http://www.gnu.org/licenses/
    3838#*****************************************************************************
    3939
    40 from sage.misc.misc import deprecation
     40from sage.misc.superseded import deprecation
    4141from sage.categories.morphism import Morphism
    4242from sage.groups.perm_gps.permgroup import PermutationGroup, PermutationGroup_generic
    4343
     
    7272            doctest... DeprecationWarning: (Since Sage Version 5.0) range is deprecated. Please use codomain instead.
    7373            Permutation Group with generators [(3,7,5)(4,8,6), (1,2,6)(3,4,8)]
    7474        """
    75         deprecation('range is deprecated. Please use codomain instead.', 'Sage Version 5.0')
     75        deprecation(10334, 'range is deprecated. Please use codomain instead.')
    7676        return self.codomain()
    7777
    7878    def kernel(self):
     
    269269        if not all([isinstance(X, PermutationGroup_generic) for X in [G, H]]):
    270270            raise TypeError, "Sorry, the groups must be permutation groups."
    271271        if images is not None:
    272             deprecation('only the images need to be specified')
     272            deprecation(10334, 'only the images need to be specified')
    273273        else:
    274274            images = gens
    275275        PermutationGroupMorphism.__init__(self, G, H)
  • sage/groups/perm_gps/permgroup_named.py

    diff --git a/sage/groups/perm_gps/permgroup_named.py b/sage/groups/perm_gps/permgroup_named.py
    a b  
    7878from sage.groups.abelian_gps.abelian_group import AbelianGroup
    7979from sage.misc.functional import is_even
    8080from sage.misc.cachefunc import cached_method
    81 from sage.misc.misc import deprecated_function_alias
     81from sage.misc.superseded import deprecated_function_alias
    8282from sage.groups.perm_gps.permgroup import PermutationGroup_generic
    8383from sage.groups.perm_gps.permgroup_element import PermutationGroupElement
    8484from sage.structure.unique_representation import UniqueRepresentation
     
    179179
    180180        return super(PermutationGroup_symalt, cls).__classcall__(cls, domain=v)
    181181
    182     set = deprecated_function_alias(PermutationGroup_generic.domain, 'Sage Version 4.7.1')
     182    set = deprecated_function_alias(10335, PermutationGroup_generic.domain)
    183183
    184184class SymmetricGroup(PermutationGroup_symalt):
    185185    def __init__(self, domain=None):
  • sage/interfaces/ecm.py

    diff --git a/sage/interfaces/ecm.py b/sage/interfaces/ecm.py
    a b  
    151151        """
    152152        return self._recommended_B1_list[self.__B1_table_value(factor_digits)]
    153153
    154    
    155     @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     154    @rename_keyword(deprecation=6094, method="algorithm")
    156155    def one_curve(self, n, factor_digits=None, B1=2000, algorithm="ECM", **kwds):
    157156        """
    158157        Run one single ECM (or P-1/P+1) curve on input n.
  • sage/libs/pari/gen.pyx

    diff --git a/sage/libs/pari/gen.pyx b/sage/libs/pari/gen.pyx
    a b  
    50435043            doctest:...: DeprecationWarning: The method lngamma() is deprecated. Use log_gamma() instead.
    50445044            359.134205369575
    50455045        """
    5046         from sage.misc.misc import deprecation
    5047         deprecation("The method lngamma() is deprecated. Use log_gamma() instead.")
     5046        from sage.misc.superseded import deprecation
     5047        deprecation(6992, "The method lngamma() is deprecated. Use log_gamma() instead.")
    50485048        return x.log_gamma(precision)
    50495049
    50505050    def log_gamma(gen x, precision=0):
  • sage/matrix/matrix0.pyx

    diff --git a/sage/matrix/matrix0.pyx b/sage/matrix/matrix0.pyx
    a b  
    163163            ...
    164164            IndexError: polynomials are immutable
    165165        """
    166         import sage.misc.misc
    167         sage.misc.misc.deprecation("the .copy() method is deprecated; please use the copy() function instead, for example, copy(M)")
     166        from sage.misc.superseded import deprecation
     167        deprecation(6521, "the .copy() method is deprecated; please use the copy() function instead, for example, copy(M)")
    168168        return self.__copy__()
    169169
    170170    def list(self):
  • sage/matrix/matrix2.pyx

    diff --git a/sage/matrix/matrix2.pyx b/sage/matrix/matrix2.pyx
    a b  
    95389538            [        0.0         0.0]
    95399539            [NaN + NaN*I NaN + NaN*I]
    95409540        """
    9541         # deprecation added 2012-05-27
    9542         from sage.misc.misc import deprecation
    9543         deprecation("cholesky_decomposition() is deprecated; please use cholesky() instead.", "Sage Version 5.1")
     9541        from sage.misc.superseded import deprecation
     9542        deprecation(13045, "cholesky_decomposition() is deprecated; please use cholesky() instead.")
    95449543        assert self._nrows == self._ncols, "Can only Cholesky decompose square matrices"
    95459544        if self._nrows == 0:
    95469545            return self.__copy__()
  • sage/matrix/matrix_double_dense.pyx

    diff --git a/sage/matrix/matrix_double_dense.pyx b/sage/matrix/matrix_double_dense.pyx
    a b  
    13371337            ...
    13381338            ValueError: algebraic_multiplicity must be set to False for double precision matrices
    13391339        """
    1340         from sage.misc.misc import deprecation
     1340        from sage.misc.superseded import deprecation
    13411341        msg = ('Eigenspaces of RDF/CDF matrices are deprecated as of ',
    13421342               'Sage version 5.0',
    13431343               ', please use "eigenmatrix_left" instead')
    1344         deprecation(''.join(msg))
     1344        deprecation(11603, ''.join(msg))
    13451345        # For numerical values we leave decisions about
    13461346        # multiplicity to the calling routine
    13471347        if algebraic_multiplicity:
     
    14291429            ...
    14301430            ValueError: algebraic_multiplicity must be set to False for double precision matrices
    14311431        """
    1432         from sage.misc.misc import deprecation
     1432        from sage.misc.superseded import deprecation
    14331433        msg = ('Eigenspaces of RDF/CDF matrices are deprecated as of ',
    14341434               'Sage version 5.0',
    14351435               ', please use "eigenmatrix_right" instead')
    1436         deprecation(''.join(msg))
     1436        deprecation(11603, ''.join(msg))
    14371437        # For numerical values we leave decisions about
    14381438        # multiplicity to the calling routine
    14391439        if algebraic_multiplicity:
     
    23902390        cdef Matrix_double_dense U, S, V
    23912391
    23922392        if len(args)>0 or len(kwds)>0:
    2393             from sage.misc.misc import deprecation
    2394             deprecation("Arguments passed to SVD, but SVD no longer supports different methods (it only uses numpy now).")
     2393            from sage.misc.superseded import deprecation
     2394            deprecation(7852, "Arguments passed to SVD, but SVD no longer supports different methods (it only uses numpy now).")
    23952395
    23962396        if self._nrows == 0 or self._ncols == 0:
    23972397            U_t = self.new_matrix(self._nrows, self._ncols)
     
    36993699        d /= 2
    37003700        return int(math.ceil(d / math.log(10)))
    37013701
    3702     @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     3702    @rename_keyword(deprecation=6094, method="algorithm")
    37033703    def exp(self, algorithm='pade', order=None):
    37043704        r"""
    37053705        Calculate the exponential of this matrix X, which is the matrix
  • sage/matrix/matrix_modn_dense.pyx

    diff --git a/sage/matrix/matrix_modn_dense.pyx b/sage/matrix/matrix_modn_dense.pyx
    a b  
    172172    # x * __richcmp__    -- always the same
    173173    ########################################################################
    174174    def __cinit__(self, parent, entries, copy, coerce):
    175         sage.misc.misc.deprecation("This class is replaced by Matrix_modn_dense_float/Matrix_modn_dense_double.")       
     175        from sage.misc.superseded import deprecation
     176        deprecation(4260, "This class is replaced by Matrix_modn_dense_float/Matrix_modn_dense_double.")
    176177   
    177178        matrix_dense.Matrix_dense.__init__(self, parent)
    178179
  • sage/matrix/matrix_modn_sparse.pyx

    diff --git a/sage/matrix/matrix_modn_sparse.pyx b/sage/matrix/matrix_modn_sparse.pyx
    a b  
    791791        linbox.set(self.p, self._nrows, self._ncols,  self.rows)
    792792        sig_off()
    793793
    794     @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     794    @rename_keyword(deprecation=6094, method="algorithm")
    795795    def _rank_linbox(self, algorithm):
    796796        """
    797797        See self.rank().
  • sage/matrix/matrix_rational_dense.pyx

    diff --git a/sage/matrix/matrix_rational_dense.pyx b/sage/matrix/matrix_rational_dense.pyx
    a b  
    630630            ...
    631631            ZeroDivisionError: input matrix must be nonsingular
    632632        """
    633         from sage.misc.misc import deprecation
    634         deprecation("'invert' is deprecated; use 'inverse' instead.")
     633        from sage.misc.superseded import deprecation
     634        deprecation(5460, "'invert' is deprecated; use 'inverse' instead.")
    635635        return self.__invert__()
    636636
    637637    def __invert__(self):
  • sage/matrix/matrix_space.py

    diff --git a/sage/matrix/matrix_space.py b/sage/matrix/matrix_space.py
    a b  
    7979import sage.rings.finite_rings.integer_mod_ring
    8080import sage.rings.polynomial.multi_polynomial_ring_generic
    8181import sage.misc.latex as latex
    82 from sage.misc.misc import deprecation
     82from sage.misc.superseded import deprecation
    8383import sage.misc.mrange
    8484import sage.modules.free_module_element
    8585import sage.modules.free_module
     
    507507            Full MatrixSpace of 3 by 5 dense matrices over Integer Ring!
    508508        """
    509509        if rows is not None:
    510             deprecation("'rows=True/False' parameter is deprecated!", "Sage 5.1")
     510            deprecation(13012, "'rows=True/False' parameter is deprecated!")
    511511            return self.matrix(entries, coerce, copy, rows)
    512512        return self.matrix(entries, coerce, copy)
    513513
     
    12981298            return self.identity_matrix().__copy__()
    12991299        m, n, sparse = self.__nrows, self.__ncols, self.__is_sparse
    13001300        if rows is not None:
    1301             deprecation("'rows=True/False' parameter is deprecated!", "Sage 5.1")
     1301            deprecation(13012, "'rows=True/False' parameter is deprecated!")
    13021302        if rows is not None and not rows:
    13031303            if not isinstance(x, dict):
    13041304                MT =  MatrixSpace(self.base_ring(), n, m, sparse)
  • sage/matrix/matrix_symbolic_dense.pyx

    diff --git a/sage/matrix/matrix_symbolic_dense.pyx b/sage/matrix/matrix_symbolic_dense.pyx
    a b  
    183183
    184184        """
    185185        if solution_set is not False:
    186             import sage.misc.misc
    187             sage.misc.misc.deprecation("solution_set parameter is deprecated")
     186            from sage.misc.superseded import deprecation
     187            deprecation(6115, "solution_set parameter is deprecated")
    188188        maxima_evals = self._maxima_(maxima).eigenvalues()._sage_()
    189189        if len(maxima_evals)==0:
    190190            raise ArithmeticError, "could not determine eigenvalues exactly using symbolic matrices; try using a different type of matrix via self.change_ring(), if possible"
     
    495495            sage: ms.is_simplified()
    496496            False
    497497        """
    498         import sage.misc.misc
    499         sage.misc.misc.deprecation("is_simplified is deprecated")
     498        from sage.misc.superseded import deprecation
     499        deprecation(6115, "is_simplified is deprecated")
    500500        return False
    501501
    502502    def simplify(self):
     
    723723            #Handle the case where args are specified
    724724
    725725            if args:
    726                 from sage.misc.misc import deprecation
    727                 deprecation("Substitution using function-call syntax and unnamed arguments is deprecated and will be removed from a future release of Sage; you can use named arguments instead, like EXPR(x=..., y=...)")
     726                from sage.misc.superseded import deprecation
     727                deprecation(4513, "Substitution using function-call syntax and unnamed arguments is deprecated and will be removed from a future release of Sage; you can use named arguments instead, like EXPR(x=..., y=...)")
    728728            #Get all the variables
    729729            variables = list( self.arguments() )
    730730
  • sage/misc/functional.py

    diff --git a/sage/misc/functional.py b/sage/misc/functional.py
    a b  
    15981598        sage: numerical_sqrt(9)
    15991599        3
    16001600    """
    1601     from sage.misc.misc import deprecation
    1602     deprecation("numerical_sqrt is deprecated, use sqrt(x, prec=n) instead")
     1601    from sage.misc.superseded import deprecation
     1602    deprecation(5404, "numerical_sqrt is deprecated, use sqrt(x, prec=n) instead")
    16031603    try: return x.sqrt()
    16041604    except (AttributeError, ValueError):
    16051605        try:
  • sage/misc/latex.py

    diff --git a/sage/misc/latex.py b/sage/misc/latex.py
    a b  
    15131513            doctest:...: DeprecationWarning: Use engine("latex") instead.
    15141514        """
    15151515        if t is None:
    1516             from sage.misc.misc import deprecation
    1517             deprecation('Use engine() instead.')
     1516            from sage.misc.superseded import deprecation
     1517            deprecation(8486, 'Use engine() instead.')
    15181518            return _Latex_prefs._option["engine"] == "pdflatex"
    15191519        elif t:
    1520             from sage.misc.misc import deprecation
    1521             deprecation('Use engine("pdflatex") instead.')
     1520            from sage.misc.superseded import deprecation
     1521            deprecation(8552, 'Use engine("pdflatex") instead.')
    15221522            self.engine("pdflatex")
    15231523        else:
    1524             from sage.misc.misc import deprecation
    1525             deprecation('Use engine("latex") instead.')
     1524            from sage.misc.superseded import deprecation
     1525            deprecation(8552, 'Use engine("latex") instead.')
    15261526            self.engine("latex")
    15271527
    15281528    def engine(self, e = None):
     
    19071907
    19081908    - Bobby Moretti (2006-10): improvements, comments, documentation
    19091909    """
    1910     from sage.misc.misc import deprecation
     1910    from sage.misc.superseded import deprecation
    19111911    from sage.misc.html import html
    1912     deprecation("The jsmath function is deprecated.  Use html('$math$') for inline mode or html('$$math$$') for display mode.")
     1912    deprecation(8552, "The jsmath function is deprecated.  Use html('$math$') for inline mode or html('$$math$$') for display mode.")
    19131913    if mode == 'display':
    19141914        delimiter = '$$'
    19151915    elif mode == 'inline':
  • sage/misc/pickle_old.pyx

    diff --git a/sage/misc/pickle_old.pyx b/sage/misc/pickle_old.pyx
    a b  
    1 from sage.misc.misc import deprecation
     1from sage.misc.superseded import deprecation
    22import sage.rings.fraction_field_element
    33
    44def make_element_old(_class, _dict, parent):
     
    77
    88    This function is deprecated and is kept only to support old pickles.
    99    """
    10     deprecation("Your data is stored in an old format. Please use the save() function to store your data in a more recent format.")
     10    deprecation(4698, "Your data is stored in an old format. Please use the save() function to store your data in a more recent format.")
    1111    if _class is sage.rings.fraction_field_element.FractionFieldElement:
    1212        return sage.rings.fraction_field_element.make_element_old(parent, _dict)
    1313    new_object = _class.__new__(_class)
  • sage/modules/free_module_element.pyx

    diff --git a/sage/modules/free_module_element.pyx b/sage/modules/free_module_element.pyx
    a b  
    11411141            [12]
    11421142            [22]
    11431143        """
    1144         from sage.misc.misc import deprecation
    1145         deprecation('The transpose() method for vectors has been deprecated, use column() instead\n(or check to see if you have a vector when you really want a matrix)', 'Sage Version 4.6.2')
     1144        from sage.misc.superseded import deprecation
     1145        deprecation(10541, 'The transpose() method for vectors has been deprecated, use column() instead\n(or check to see if you have a vector when you really want a matrix)')
    11461146        return self._matrix_().transpose()
    11471147
    11481148    def row(self):
  • sage/plot/misc.py

    diff --git a/sage/plot/misc.py b/sage/plot/misc.py
    a b  
    106106    else:
    107107        vars, free_vars = unify_arguments(funcs)
    108108        if len(free_vars)>1:
    109             from sage.misc.misc import deprecation
    110             deprecation("Unnamed ranges for more than one variable is deprecated and will be removed from a future release of Sage; you can used named ranges instead, like (x,0,2)")
     109            from sage.misc.superseded import deprecation
     110            deprecation(7008, "Unnamed ranges for more than one variable is deprecated and will be removed from a future release of Sage; you can used named ranges instead, like (x,0,2)")
    111111
    112112    # pad the variables if we don't have enough
    113113    nargs = len(ranges)
  • sage/plot/plot.py

    diff --git a/sage/plot/plot.py b/sage/plot/plot.py
    a b  
    13251325
    13261326    # Label?
    13271327    if label:
    1328         sage.misc.misc.deprecation("Consider using legend_label instead")
     1328        from sage.misc.superseded import deprecation
     1329        deprecation(4342, "Consider using legend_label instead")
    13291330        label = '  '+str(label)
    13301331        G += text(label, data[-1], horizontal_alignment='left',
    13311332                  vertical_alignment='center')
     
    14291430            break
    14301431
    14311432    if num_ranges==0 and len(args)>=2:
    1432         from sage.misc.misc import deprecation
    1433         deprecation("variable ranges to parametric_plot must be given as tuples, like (2,4) or (t,2,3)")
     1433        from sage.misc.superseded import deprecation
     1434        deprecation(7008, "variable ranges to parametric_plot must be given as tuples, like (2,4) or (t,2,3)")
    14341435        args=tuple(args)
    14351436        num_ranges=1
    14361437
     
    18011802        sage: var_and_list_of_values((2, 5),  2)
    18021803        (None, [2.0, 5.0])
    18031804    """
    1804     from sage.misc.misc import deprecation
    1805     deprecation("var_and_list_of_values is deprecated.  Please use sage.plot.misc.setup_for_eval_on_grid; note that that function has slightly different calling and return conventions which make it more generally applicable")
     1805    from sage.misc.superseded import deprecation
     1806    deprecation(7008, "var_and_list_of_values is deprecated.  Please use sage.plot.misc.setup_for_eval_on_grid; note that that function has slightly different calling and return conventions which make it more generally applicable")
    18061807    plot_points = int(plot_points)
    18071808    if plot_points < 2:
    18081809        raise ValueError, "plot_points must be greater than 1"
     
    18861887
    18871888       
    18881889    """
    1889     from sage.misc.misc import deprecation
    1890     deprecation("sage.plot.plot.setup_for_eval_on_grid is deprecated.  Please use sage.plot.misc.setup_for_eval_on_grid; note that that function has slightly different calling and return conventions which make it more generally applicable")
     1890    from sage.misc.superseded import deprecation
     1891    deprecation(7008, "sage.plot.plot.setup_for_eval_on_grid is deprecated.  Please use sage.plot.misc.setup_for_eval_on_grid; note that that function has slightly different calling and return conventions which make it more generally applicable")
    18911892
    18921893    from sage.plot.misc import setup_for_eval_on_grid as setup
    18931894    g, ranges=setup(v, [xrange, yrange], plot_points)
  • sage/plot/plot3d/shapes.pyx

    diff --git a/sage/plot/plot3d/shapes.pyx b/sage/plot/plot3d/shapes.pyx
    a b  
    522522        theta = -acos(diff[2]/height)
    523523        return cyl.rotate(axis, theta).translate(start)
    524524
    525 @rename_keyword(deprecated='Sage 4.6', deprecated_option='thickness', thickness='width')
     525@rename_keyword(deprecation=7154, deprecated_option='thickness', thickness='width')
    526526def arrow3d(start, end, width=1, radius=None, head_radius=None, head_len=None, **kwds):
    527527    """
    528528    Create a 3d arrow.
  • sage/rings/finite_rings/element_base.pyx

    diff --git a/sage/rings/finite_rings/element_base.pyx b/sage/rings/finite_rings/element_base.pyx
    a b  
    184184            doctest:1: DeprecationWarning:The function vector is replaced by _vector_.
    185185            (1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
    186186        """
    187         from sage.misc.misc import deprecation
    188         deprecation("The function vector is replaced by _vector_.")
     187        from sage.misc.superseded import deprecation
     188        deprecation(8218, "The function vector is replaced by _vector_.")
    189189        return self._vector_()
    190190
    191191    def _vector_(self, reverse=False):
     
    265265            [0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0]
    266266            [0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1]
    267267        """
    268         from sage.misc.misc import deprecation
    269         deprecation("The function matrix is replaced by _matrix_.")
     268        from sage.misc.superseded import deprecation
     269        deprecation(8218, "The function matrix is replaced by _matrix_.")
    270270        return self._matrix_()
    271271       
    272272
  • sage/rings/integer.pyx

    diff --git a/sage/rings/integer.pyx b/sage/rings/integer.pyx
    a b  
    49694969            sage: 4.sqrt_approx()
    49704970            2
    49714971        """
    4972         from sage.misc.misc import deprecation
    4973         deprecation("This function is deprecated.  Use sqrt with a given number of bits of precision instead.")
     4972        from sage.misc.superseded import deprecation
     4973        deprecation(10107, "This function is deprecated.  Use sqrt with a given number of bits of precision instead.")
    49744974        try:
    49754975            return self.sqrt(extend=False,all=all)
    49764976        except ValueError:
  • sage/rings/integer_ring.pyx

    diff --git a/sage/rings/integer_ring.pyx b/sage/rings/integer_ring.pyx
    a b  
    10761076        doctest:...: DeprecationWarning: This function is deprecated...
    10771077        1
    10781078    """
    1079     from sage.misc.misc import deprecation
    1080     deprecation("This function is deprecated.  Call the factor method of an Integer,"
     1079    from sage.misc.superseded import deprecation
     1080    deprecation(5945, "This function is deprecated.  Call the factor method of an Integer,"
    10811081                +"or sage.arith.factor instead.")
    10821082    #deprecated 4.6.2
    10831083
  • sage/rings/polynomial/multi_polynomial_ideal.py

    diff --git a/sage/rings/polynomial/multi_polynomial_ideal.py b/sage/rings/polynomial/multi_polynomial_ideal.py
    a b  
    19991999        ``toy_buchberger.inter_reduction`` if conversion to
    20002000        Singular fails.
    20012001        """
    2002         from sage.misc.misc import deprecation
    2003         deprecation("This function is deprecated. It will be removed in a future release of Sage. Please use the interreduced_basis() function instead.")
     2002        from sage.misc.superseded import deprecation
     2003        deprecation(5058, "This function is deprecated. It will be removed in a future release of Sage. Please use the interreduced_basis() function instead.")
    20042004        return self.interreduced_basis()
    20052005
    20062006    @singular_standard_options
  • sage/rings/polynomial/polynomial_compiled.pyx

    diff --git a/sage/rings/polynomial/polynomial_compiled.pyx b/sage/rings/polynomial/polynomial_compiled.pyx
    a b  
    3939    """
    4040
    4141
    42     #@rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     42    #@rename_keyword(deprecation=trac_number, method="algorithm")
    4343    def __init__(self, coeffs, algorithm='binary'):
    4444        """
    4545        Compiles a polynomial into an evaluation DAG representation which
  • sage/rings/polynomial/polynomial_element.pyx

    diff --git a/sage/rings/polynomial/polynomial_element.pyx b/sage/rings/polynomial/polynomial_element.pyx
    a b  
    54115411            doctest:...: DeprecationWarning: This function is deprecated. It will be removed in a future release of Sage. Please use the .variable_name() function instead.
    54125412            'theta'
    54135413        """
    5414         from sage.misc.misc import deprecation
    5415         deprecation("This function is deprecated. It will be removed in a future release of Sage. Please use the .variable_name() function instead.")
     5414        from sage.misc.superseded import deprecation
     5415        deprecation(4522, "This function is deprecated. It will be removed in a future release of Sage. Please use the .variable_name() function instead.")
    54165416        return self.parent().variable_name()
    54175417
    54185418
  • sage/rings/polynomial/polynomial_ring_constructor.py

    diff --git a/sage/rings/polynomial/polynomial_ring_constructor.py b/sage/rings/polynomial/polynomial_ring_constructor.py
    a b  
    431431    If you have questions regarding this function and its replacement,
    432432    please send your comments to sage-support@googlegroups.com.
    433433    """
    434     from sage.misc.misc import deprecation
    435     deprecation("MPolynomialRing is deprecated, use PolynomialRing instead!")
     434    from sage.misc.superseded import deprecation
     435    deprecation(6500, "MPolynomialRing is deprecated, use PolynomialRing instead!")
    436436    return PolynomialRing(*args, **kwds)
    437437
    438438def _get_from_cache(key):
  • sage/rings/power_series_ring.py

    diff --git a/sage/rings/power_series_ring.py b/sage/rings/power_series_ring.py
    a b  
    323323    ## too many things (padics, elliptic curves) depend on this behavior,
    324324    ## so no warning for now.
    325325    ##
    326     # from sage.misc.misc import deprecation
     326    # from sage.misc.superseded import deprecation
    327327    # if isinstance(name, (int,long,integer.Integer)) or isinstance(arg2,(int,long,integer.Integer)):
    328     #     deprecation("This behavior of PowerSeriesRing is being deprecated in favor of constructing multivariate power series rings. (See Trac ticket #1956.)")
     328    #     deprecation(trac_number, "This behavior of PowerSeriesRing is being deprecated in favor of constructing multivariate power series rings. (See Trac ticket #1956.)")
    329329
    330330
    331331    # the following is the original, univariate-only code
  • sage/rings/rational.pyx

    diff --git a/sage/rings/rational.pyx b/sage/rings/rational.pyx
    a b  
    15121512            sage: (9/4).sqrt_approx()
    15131513            3/2
    15141514        """
    1515         from sage.misc.misc import deprecation
    1516         deprecation("This function is deprecated.  Use sqrt with a given number of bits of precision instead.")
     1515        from sage.misc.superseded import deprecation
     1516        deprecation(9859, "This function is deprecated.  Use sqrt with a given number of bits of precision instead.")
    15171517        try:
    15181518            return self.sqrt(extend=False,all=all)
    15191519        except ValueError:
  • sage/rings/real_mpfr.pyx

    diff --git a/sage/rings/real_mpfr.pyx b/sage/rings/real_mpfr.pyx
    a b  
    45934593            doctest:...: DeprecationWarning: The method lngamma() is deprecated. Use log_gamma() instead.
    45944594            4.78749174278205
    45954595        """
    4596         from sage.misc.misc import deprecation
    4597         deprecation("The method lngamma() is deprecated. Use log_gamma() instead.")
     4596        from sage.misc.superseded import deprecation
     4597        deprecation(6992, "The method lngamma() is deprecated. Use log_gamma() instead.")
    45984598        return self.log_gamma()
    45994599
    46004600    def log_gamma(self):
  • sage/sandpiles/sandpile.py

    diff --git a/sage/sandpiles/sandpile.py b/sage/sandpiles/sandpile.py
    a b  
    66from copy import deepcopy
    77from sage.rings.all import PolynomialRing, QQ, ZZ, lcm
    88from sage.misc.all import prod, det, forall, tmp_filename, random, randint, exists, denominator, srange
    9 from sage.misc.misc import deprecated_function_alias
     9from sage.misc.superseded import deprecated_function_alias
    1010from sage.modules.free_module_element import vector
    1111from sage.matrix.constructor import matrix, identity_matrix
    1212from sage.interfaces.singular import singular
     
    14461446        """
    14471447        return deepcopy(self._invariant_factors)
    14481448
    1449     elementary_divisors = deprecated_function_alias(invariant_factors, 'Sage Sandpile Version 2.2')
     1449    elementary_divisors = deprecated_function_alias(10618, invariant_factors)
    14501450
    14511451    def _set_hilbert_function(self):
    14521452        """
  • sage/schemes/elliptic_curves/constructor.py

    diff --git a/sage/schemes/elliptic_curves/constructor.py b/sage/schemes/elliptic_curves/constructor.py
    a b  
    309309        return ell_rational_field.EllipticCurve_rational_field(x)
    310310       
    311311    if rings.is_RingElement(x) and y is None:
    312         from sage.misc.misc import deprecation
    313         deprecation("'EllipticCurve(j)' is deprecated; use 'EllipticCurve_from_j(j)' or 'EllipticCurve(j=j)' instead.")
     312        from sage.misc.superseded import deprecation
     313        deprecation(5673, "'EllipticCurve(j)' is deprecated; use 'EllipticCurve_from_j(j)' or 'EllipticCurve(j=j)' instead.")
    314314        # Fixed for all characteristics and cases by John Cremona
    315315        j=x
    316316        F=j.parent().fraction_field()
  • sage/schemes/elliptic_curves/ell_rational_field.py

    diff --git a/sage/schemes/elliptic_curves/ell_rational_field.py b/sage/schemes/elliptic_curves/ell_rational_field.py
    a b  
    31003100            doctest:1: DeprecationWarning: integral_weierstrass_model is deprecated, use integral_short_weierstrass_model instead!
    31013101            Elliptic Curve defined by y^2  = x^3 - 11*x - 890 over Rational Field
    31023102        """
    3103         from sage.misc.misc import deprecation
    3104         deprecation("integral_weierstrass_model is deprecated, use integral_short_weierstrass_model instead!")
     3103        from sage.misc.superseded import deprecation
     3104        deprecation(3974, "integral_weierstrass_model is deprecated, use integral_short_weierstrass_model instead!")
    31053105        return self.integral_short_weierstrass_model()
    31063106
    31073107
     
    45844584            True
    45854585           
    45864586        """
    4587         from sage.misc.misc import deprecation
    4588         deprecation("is_reducible is deprecated, use galois_representation().is_reducible(p) instead!")
     4587        from sage.misc.superseded import deprecation
     4588        deprecation(8118, "is_reducible is deprecated, use galois_representation().is_reducible(p) instead!")
    45894589        return self.galois_representation().is_reducible(p)
    45904590
    45914591    # deprecated as it should be the is_irreducible for a scheme (and hence return True always).
     
    46044604            True
    46054605       
    46064606        """
    4607         from sage.misc.misc import deprecation
    4608         deprecation("is_irreducible is deprecated, use galois_representation().is_irreducible(p) instead!")
     4607        from sage.misc.superseded import deprecation
     4608        deprecation(8118, "is_irreducible is deprecated, use galois_representation().is_irreducible(p) instead!")
    46094609        return self.galois_representation().is_irreducible(p)
    46104610       
    46114611    # deprecated
     
    46244624            True
    46254625       
    46264626        """
    4627         from sage.misc.misc import deprecation
    4628         deprecation("is_surjective is deprecated, use galois_representation().is_surjective(p) instead!")
     4627        from sage.misc.superseded import deprecation
     4628        deprecation(8118, "is_surjective is deprecated, use galois_representation().is_surjective(p) instead!")
    46294629        return self.galois_representation().is_surjective(p,A)
    46304630
    46314631    # deprecated
     
    46444644            [2,3]
    46454645       
    46464646       """
    4647         from sage.misc.misc import deprecation
    4648         deprecation("reducible_primes is deprecated, use galois_representation().reducible_primes() instead!")
     4647        from sage.misc.superseded import deprecation
     4648        deprecation(8118, "reducible_primes is deprecated, use galois_representation().reducible_primes() instead!")
    46494649        return self.galois_representation().reducible_primes()
    46504650
    46514651    # deprecated
     
    46644664            [2,3]
    46654665           
    46664666        """
    4667         from sage.misc.misc import deprecation
    4668         deprecation("non_surjective is deprecated, use galois_representation().non_surjective() instead!")
     4667        from sage.misc.superseded import deprecation
     4668        deprecation(8118, "non_surjective is deprecated, use galois_representation().non_surjective() instead!")
    46694669        return self.galois_representation().non_surjective()
    46704670
    46714671    def is_semistable(self):
  • sage/schemes/elliptic_curves/padic_lseries.py

    diff --git a/sage/schemes/elliptic_curves/padic_lseries.py b/sage/schemes/elliptic_curves/padic_lseries.py
    a b  
    12491249        return resu
    12501250
    12511251
    1252     @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     1252    @rename_keyword(deprecation=6094, method="algorithm")
    12531253    def frobenius(self, prec=20, algorithm = "mw"):
    12541254        r"""
    12551255        This returns a geometric Frobenius `\varphi` on the Diedonne module `D_p(E)`
  • sage/schemes/generic/divisor.py

    diff --git a/sage/schemes/generic/divisor.py b/sage/schemes/generic/divisor.py
    a b  
    440440            sage: D.coefficient(pts[0])
    441441            1
    442442        """
    443         from sage.misc.misc import deprecation
    444         deprecation("This method is deprecated. It will be removed in a future release of Sage. Please use the coefficient() method instead.")
     443        from sage.misc.superseded import deprecation
     444        deprecation(9337, "This method is deprecated. It will be removed in a future release of Sage. Please use the coefficient() method instead.")
    445445        return self.coefficient(P)
    446446
    447447       
  • sage/sets/set.py

    diff --git a/sage/sets/set.py b/sage/sets/set.py
    a b  
    145145        ...
    146146        ValueError: X (=Integer Ring) must be finite
    147147    """
    148     from sage.misc.misc import deprecation
    149     deprecation('EnumeratedSet is deprecated; use Set instead.')
     148    from sage.misc.superseded import deprecation
     149    deprecation(8930, 'EnumeratedSet is deprecated; use Set instead.')
    150150    try:
    151151        if not X.is_finite():
    152152            raise ValueError, "X (=%s) must be finite"%X
  • sage/structure/category_object.pyx

    diff --git a/sage/structure/category_object.pyx b/sage/structure/category_object.pyx
    a b  
    518518        """
    519519        This is a deprecated synonym for :meth:`.inject_variables`.
    520520        """
    521         from sage.misc.misc import deprecation
    522         deprecation('injvar is deprecated; use inject_variables instead.')
     521        from sage.misc.superseded import deprecation
     522        deprecation(4143, 'injvar is deprecated; use inject_variables instead.')
    523523        return self.inject_variables(scope=scope, verbose=verbose)
    524524                   
    525525    #################################################################################################
  • sage/structure/element.pyx

    diff --git a/sage/structure/element.pyx b/sage/structure/element.pyx
    a b  
    18471847            12
    18481848        """
    18491849        # deprecation added 2009-05
    1850         from sage.misc.misc import deprecation
    1851         deprecation("The function order is deprecated for ring elements; use additive_order or multiplicative_order instead.")
     1850        from sage.misc.superseded import deprecation
     1851        deprecation(5716, "The function order is deprecated for ring elements; use additive_order or multiplicative_order instead.")
    18521852        return self.additive_order()
    18531853
    18541854    def additive_order(self):
  • sage/symbolic/expression.pyx

    diff --git a/sage/symbolic/expression.pyx b/sage/symbolic/expression.pyx
    a b  
    147147from sage.misc.derivative import multi_derivative
    148148from sage.rings.infinity import AnInfinity, infinity, minus_infinity, unsigned_infinity
    149149from sage.misc.decorators import rename_keyword
    150 from sage.misc.misc import deprecated_function_alias
     150from sage.misc.superseded import deprecated_function_alias
    151151
    152152LOG_TEN_TWO_PLUS_EPSILON = 3.321928094887363 # a small overestimate of log(10,2)
    153153
     
    14871487        return self._maxima_init_()
    14881488
    14891489
    1490     _is_real     = deprecated_function_alias(is_real,     'Sage 4.7.1')
    1491     _is_positive = deprecated_function_alias(is_positive, 'Sage 4.7.1')
    1492     _is_negative = deprecated_function_alias(is_negative, 'Sage 4.7.1')
    1493     _is_integer  = deprecated_function_alias(is_integer,  'Sage 4.7.1')
    1494     _is_symbol   = deprecated_function_alias(is_symbol,   'Sage 4.7.1')
    1495     _is_constant = deprecated_function_alias(is_constant, 'Sage 4.7.1')
    1496     _is_numeric  = deprecated_function_alias(is_numeric,  'Sage 4.7.1')
     1490    _is_real     = deprecated_function_alias(10859, is_real)
     1491    _is_positive = deprecated_function_alias(10859, is_positive)
     1492    _is_negative = deprecated_function_alias(10859, is_negative)
     1493    _is_integer  = deprecated_function_alias(10859, is_integer)
     1494    _is_symbol   = deprecated_function_alias(10859, is_symbol)
     1495    _is_constant = deprecated_function_alias(10859, is_constant)
     1496    _is_numeric  = deprecated_function_alias(10859, is_numeric)
    14971497
    14981498    def is_real(self):
    14991499        """
     
    66106610            doctest:...: DeprecationWarning: The lgamma() function is deprecated. Use log_gamma() instead.
    66116611            log_gamma(x)
    66126612        """
    6613         from sage.misc.misc import deprecation
    6614         deprecation("The lgamma() function is deprecated. Use log_gamma() instead.")
     6613        from sage.misc.superseded import deprecation
     6614        deprecation(6992, "The lgamma() function is deprecated. Use log_gamma() instead.")
    66156615        return self.log_gamma(hold=hold)
    66166616
    66176617    def log_gamma(self, hold=False):
     
    71917191
    71927192    trig_simplify = simplify_trig
    71937193
    7194     @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     7194    @rename_keyword(deprecation=6094, method="algorithm")
    71957195    def simplify_rational(self,algorithm='full', map=False):
    71967196        r"""
    71977197        Simplify rational expressions.
     
    74317431    radical_simplify = simplify_radical
    74327432    simplify_exp = exp_simplify = simplify_radical
    74337433
    7434     @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     7434    @rename_keyword(deprecation=6094, method="algorithm")
    74357435    def simplify_log(self,algorithm=None):
    74367436        r"""
    74377437        Simplifies symbolic expression, which can contain logs.
     
    75767576
    75777577    log_simplify = simplify_log
    75787578
    7579     @rename_keyword(deprecated='Sage version 4.6', method="algorithm")
     7579    @rename_keyword(deprecation=6094, method="algorithm")
    75807580    def expand_log(self,algorithm='products'):
    75817581        r"""
    75827582        Simplifies symbolic expression, which can contain logs.
  • sage/symbolic/expression_conversions.py

    diff --git a/sage/symbolic/expression_conversions.py b/sage/symbolic/expression_conversions.py
    a b  
    11051105                vars = ex.variables()
    11061106
    11071107            if vars:
    1108                 from sage.misc.misc import deprecation
    1109                 deprecation("Substitution using function-call syntax and unnamed arguments is deprecated and will be removed from a future release of Sage; you can use named arguments instead, like EXPR(x=..., y=...)")
     1108                from sage.misc.superseded import deprecation
     1109                deprecation(5930, "Substitution using function-call syntax and unnamed arguments is deprecated and will be removed from a future release of Sage; you can use named arguments instead, like EXPR(x=..., y=...)")
    11101110
    11111111       
    11121112        self.vars = vars
  • sage/symbolic/integration/integral.py

    diff --git a/sage/symbolic/integration/integral.py b/sage/symbolic/integration/integral.py
    a b  
    299299        # two arguments, must be endpoints
    300300        v, a, b = None, v, a
    301301    if v is None:
    302         from sage.misc.misc import deprecation
    303         deprecation("Variable of integration should be specified explicitly.")
     302        from sage.misc.superseded import deprecation
     303        deprecation(12438, "Variable of integration should be specified explicitly.")
    304304        v = f.default_variable()
    305305        if isinstance(f, Function):  # a bare function like sin
    306306            f = f(v)
  • sage/symbolic/ring.pyx

    diff --git a/sage/symbolic/ring.pyx b/sage/symbolic/ring.pyx
    a b  
    670670        elif len(args) == 1 and isinstance(args[0], dict):
    671671            d = args[0]
    672672        else:
    673             from sage.misc.misc import deprecation
     673            from sage.misc.superseded import deprecation
    674674            vars = _the_element.operands()
    675             deprecation("Substitution using function-call syntax and unnamed arguments is deprecated and will be removed from a future release of Sage; you can use named arguments instead, like EXPR(x=..., y=...)")
     675            deprecation(5930, "Substitution using function-call syntax and unnamed arguments is deprecated and will be removed from a future release of Sage; you can use named arguments instead, like EXPR(x=..., y=...)")
    676676            d = {}
    677677           
    678678            vars = _the_element.variables()