I wanted to replace the SageMath deprecation warnings in the code with generic Python warnings so that the warnings do not link to trac tickets that are unrelated/don't exist anymore. I considered using a library such as Deprecated or deprecation but it turns out that these don't play nicely with SageMath's doctesting framework.
Anyway, actually all the deprecated functionality has been deprecated for at least 3 years, so I guess we can just drop it anyway. That's what I ended up doing. In the future we should not abuse sage.misc.superseded anymore but just
from warnings import warn
warn("Class.method() has been deprecated and will be removed from a future version of sage-flatsurf. Use somethingelse() instead. See https://github.com/flatsurf/sage-flatsurf/issues/123.")
I wanted to replace the SageMath deprecation warnings in the code with generic Python warnings so that the warnings do not link to trac tickets that are unrelated/don't exist anymore. I considered using a library such as Deprecated or deprecation but it turns out that these don't play nicely with SageMath's doctesting framework.
Anyway, actually all the deprecated functionality has been deprecated for at least 3 years, so I guess we can just drop it anyway. That's what I ended up doing. In the future we should not abuse
sage.misc.superseded
anymore but just