diff options
| author | Feth AREZKI <feth@tuttu.info> | 2012-03-06 22:14:29 +0100 |
|---|---|---|
| committer | Feth AREZKI <feth@tuttu.info> | 2012-03-06 22:14:29 +0100 |
| commit | 353aec4f1ee0d0989e0fe92f932df66dcfec7801 (patch) | |
| tree | d7359e55529767b8d540c5f9025cb3c4670ef7e9 /budget/utils.py | |
| parent | e04a4154e874cfa2987170873fc1af66a9f084ac (diff) | |
| download | ihatemoney-mirror-353aec4f1ee0d0989e0fe92f932df66dcfec7801.zip ihatemoney-mirror-353aec4f1ee0d0989e0fe92f932df66dcfec7801.tar.gz ihatemoney-mirror-353aec4f1ee0d0989e0fe92f932df66dcfec7801.tar.bz2 | |
remove unused imports, and pep8
Diffstat (limited to 'budget/utils.py')
| -rw-r--r-- | budget/utils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/budget/utils.py b/budget/utils.py index 52fd151..143fc7e 100644 --- a/budget/utils.py +++ b/budget/utils.py @@ -1,10 +1,10 @@ import re -from functools import wraps import inspect -from flask import redirect, url_for, session, request +from flask import redirect from werkzeug.routing import HTTPException, RoutingException + def slugify(value): """Normalizes string, converts to lowercase, removes non-alpha characters, and converts spaces to hyphens. @@ -33,6 +33,7 @@ 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): |
