This commit is contained in:
birdi 2019-08-12 14:16:05 +03:00
parent e1cd68d4d3
commit 9ea22a29fc
2 changed files with 4 additions and 9 deletions

View file

@ -1,7 +1,3 @@
"""
Source: https://stackoverflow.com/questions/2536307/decorators-in-the-python-standard-lib-deprecated-specifically
"""
import functools
import inspect
import warnings
@ -13,6 +9,8 @@ def deprecated(reason):
This is a decorator which can be used to mark functions
as deprecated. It will result in a warning being emitted
when the function is used.
Source: https://stackoverflow.com/questions/2536307/decorators-in-the-python-standard-lib-deprecated-specifically
"""
if isinstance(reason, str):