Skip to content

Rewrite deprecation to use trac ticket numbers #13109

@vbraun

Description

@vbraun

As discussed on https://groups.google.com/d/topic/sage-devel/I12IeaFlE7g/discussion, change the deprecation function to the new arguments

deprecation(trac_number, message) 

where both arguments are mandatory. Once this code is in Sage, one
can deduce every possible thing discussed above in this thread from
the trac number. The deprecation warning can produce the URL of the
trac ticket.

Analogous changes are made to deprecated_function_alias and deprecated_callable_import. Finally, the @rename_keyword(deprecated="sage version string", ...) decorator is changed to

@rename_keyword(deprecation=<trac_number>, ...)

Apply

This ticket also fixes #8073, #8546.

Depends on #12544
Depends on #12965

CC: @JohnCremona @kini @williamstein @jasongrout @kcrisman

Component: doctest coverage

Author: Volker Braun

Reviewer: John Palmieri, Karl-Dieter Crisman

Merged: sage-5.2.rc0

Issue created by migration from https://trac.sagemath.org/ticket/13109

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions