We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f025623 commit 2062ed6Copy full SHA for 2062ed6
tdl/__style.py
@@ -1,8 +1,19 @@
1
+"""
2
+ Used internally to handle style changes without breaking backwards
3
+ compatibility.
4
5
6
import warnings as _warnings
7
import functools as _functools
8
9
def backport(func):
10
+ """
11
+ Backport a function name into an old style for compatibility.
12
+
13
+ The docstring is updated to reflect that the new function returned is
14
+ deprecated and that the other function is preferred.
15
+ A DeprecationWarning is also raised for using this function.
16
17
@_functools.wraps(func)
18
def deprecated_function(*args, **kargs):
19
_warnings.warn('This finction name is deprecated',
0 commit comments