mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
remove unused imports, and pep8
This commit is contained in:
parent
e04a4154e8
commit
353aec4f1e
1 changed files with 3 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue