Fix flake8 warnings: mostly unused imports

Fixes b4f51867b6 ("Fix crash when a localized email template is missing (#592)")
Fixes 38aae77d33 ("Improve error handling when sending emails")
Fixes 77f50e9137 ("Add new tests to check for email failures")
This commit is contained in:
Baptiste Jonglez 2020-06-01 22:42:35 +02:00 committed by zorun
parent 99d9159c21
commit 0949a58da8
2 changed files with 5 additions and 4 deletions

View file

@ -14,7 +14,6 @@ import os
import json
from collections import defaultdict
import six
import re
import smtplib
import socket
from time import sleep

View file

@ -15,9 +15,8 @@ from flask import (
session, url_for, send_file, send_from_directory
)
from flask_mail import Message
from flask_babel import get_locale, gettext as _
from flask_babel import gettext as _
from werkzeug.security import check_password_hash, generate_password_hash
from smtplib import SMTPRecipientsRefused
from werkzeug.exceptions import NotFound
from sqlalchemy import orm
from functools import wraps
@ -27,7 +26,10 @@ from ihatemoney.forms import (
AdminAuthenticationForm, AuthenticationForm, EditProjectForm,
InviteForm, MemberForm, PasswordReminder, ResetPasswordForm, ProjectForm, get_billform_for
)
from ihatemoney.utils import Redirect303, list_of_dicts2json, list_of_dicts2csv, LoginThrottler, render_localized_template, send_email
from ihatemoney.utils import (
Redirect303, list_of_dicts2json, list_of_dicts2csv, LoginThrottler,
render_localized_template, send_email
)
main = Blueprint("main", __name__)