summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils.py b/utils.py
index ab5220c01..19a10f518 100644
--- a/utils.py
+++ b/utils.py
@@ -106,6 +106,7 @@ def deprecate(func, oldname=None, newname=None):
def newfunc(*args,**kwds):
warnings.warn(str1, DeprecationWarning)
return func(*args, **kwds)
+
newfunc = _set_function_name(newfunc, oldname)
doc = func.__doc__
if doc is None: