INNER CODE UNIT · Python
func_old
PyAbel/PyAbel · abel/__init__.py:8
def func_old(...):
"""Deprecated function. Use :func:`func_new` instead."""
_deprecate('abel.submodule.func_old() '
'is deprecated, use abel.module.func_new() instead.')
...
def func(..., arg_old=_deprecated, arg_new):
if arg_old is not _deprecated:
_deprecate('abel.submodule.func() '
'argument "arg_old" is deprecated, use "arg_new" instead.')
arg_new = arg_old
...
In unit tests:
# to suppress deprecation warnings
from warnings import catch_warnings, simplefilter