Skip to content

Commit d3c6e87

Browse files
committed
docstring
1 parent af8c0b1 commit d3c6e87

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/diffpy/utils/_deprecator.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@
1111

1212

1313
def deprecated(message, *, category=DeprecationWarning, stacklevel=1):
14-
"""Compatibility wrapper for Python <3.13.
15-
16-
Matches the Python 3.13 warnings.deprecated API exactly.
17-
"""
14+
"""Deprecation decorator for functions and classes that is compatible with
15+
Python versions prior to 3.13."""
1816
if _builtin_deprecated is not None:
1917
return _builtin_deprecated(
2018
message, category=category, stacklevel=stacklevel

0 commit comments

Comments
 (0)