aboutsummaryrefslogtreecommitdiff
path: root/pandora/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'pandora/util.py')
-rw-r--r--pandora/util.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/pandora/util.py b/pandora/util.py
index 3a1bc5f..5cbc774 100644
--- a/pandora/util.py
+++ b/pandora/util.py
@@ -25,10 +25,11 @@ def deprecated(in_version, remove_version, message):
25 Decorator to warn that a function is deprecated and what version it will be 25 Decorator to warn that a function is deprecated and what version it will be
26 removed in. 26 removed in.
27 """ 27 """
28 def wrapper(f): 28 def wrapper(wrapped):
29 @wraps(f) 29 @wraps(wrapped)
30 def inner_wrapper(self, *args, **kwargs): 30 def inner_wrapper(self, *args, **kwargs):
31 warn_deprecated(in_version, remove_version, f.func_name, message) 31 warn_deprecated(
32 return f(self, *args, **kwargs) 32 in_version, remove_version, wrapped.func_name, message)
33 return wrapped(self, *args, **kwargs)
33 return inner_wrapper 34 return inner_wrapper
34 return wrapper 35 return wrapper