aboutsummaryrefslogtreecommitdiff
path: root/budget
diff options
context:
space:
mode:
Diffstat (limited to 'budget')
-rw-r--r--budget/utils.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/budget/utils.py b/budget/utils.py
index 143fc7e..60337fb 100644
--- a/budget/utils.py
+++ b/budget/utils.py
@@ -32,12 +32,3 @@ class Redirect303(HTTPException, RoutingException):
def get_response(self, environ):
return redirect(self.new_url, 303)
-
-
-def for_all_methods(decorator):
- """Apply a decorator to all the methods of a class"""
- def decorate(cls):
- for name, method in inspect.getmembers(cls, inspect.ismethod):
- setattr(cls, name, decorator(method))
- return cls
- return decorate