diff --git a/src/sage/misc/decorators.py b/src/sage/misc/decorators.py index 9b5cc6a602e..a9f747bff7e 100644 --- a/src/sage/misc/decorators.py +++ b/src/sage/misc/decorators.py @@ -238,7 +238,7 @@ def listForNone(l): return ArgSpec(args, argspec.varargs, argspec.keywords, defaults) wrapper._sage_argspec_ = argspec - return decorate(func, wrapper) + return wrapper class options(object): @@ -375,7 +375,7 @@ def reset(): %s """ % self.options - return decorate(func, wrapper) + return wrapper def rename_keyword(deprecated=None, deprecation=None, **renames):