diff options
| author | Feth AREZKI <feth@tuttu.info> | 2012-03-06 22:42:58 +0100 |
|---|---|---|
| committer | Feth AREZKI <feth@tuttu.info> | 2012-03-06 22:42:58 +0100 |
| commit | 46d2dfeb298cfbde710358c6ff361478b358d3af (patch) | |
| tree | 415b72cb6f781cd207dac15897c44beb610c3872 /budget | |
| parent | 353aec4f1ee0d0989e0fe92f932df66dcfec7801 (diff) | |
| download | ihatemoney-mirror-46d2dfeb298cfbde710358c6ff361478b358d3af.zip ihatemoney-mirror-46d2dfeb298cfbde710358c6ff361478b358d3af.tar.gz ihatemoney-mirror-46d2dfeb298cfbde710358c6ff361478b358d3af.tar.bz2 | |
remove unused code
If that code is ever needed, I'll try to rewrite it as a class
decorator, which is more hype
Diffstat (limited to 'budget')
| -rw-r--r-- | budget/utils.py | 9 |
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 |
