cosmetic: blackify and isortify

This commit is contained in:
Martin Pépin 2019-01-24 11:15:08 +01:00
parent 12c10847e7
commit 727626cadd
2 changed files with 5 additions and 5 deletions

View file

@ -18,8 +18,7 @@ from bda.models import (
SpectacleRevente,
Tirage,
)
from utils.mailutils import send_mass_custom_mail_wrapper, SendMassMailRecipientRefused
from utils.mailutils import SendMassMailRecipientRefused, send_mass_custom_mail_wrapper
class ReadOnlyMixin(object):
@ -152,7 +151,7 @@ class ParticipantAdmin(ReadOnlyMixin, admin.ModelAdmin):
count -= len(errors)
self.message_user(
request,
"Les emails suivant causent des erreurs: {}".format(faulty_emails)
"Les emails suivant causent des erreurs: {}".format(faulty_emails),
)
raise
finally:

View file

@ -1,6 +1,7 @@
from custommail.shortcuts import send_mass_custom_mail
from smtplib import SMTPRecipientsRefused
from custommail.shortcuts import send_mass_custom_mail
def drop_until(predicate, l):
"""
@ -9,7 +10,7 @@ def drop_until(predicate, l):
"""
for i in range(len(l)):
if predicate(l[i]):
return l[i + 1:]
return l[i + 1 :]
return []