[attributs] a, b = [a,b] mieux que a, b = [a,b][0], [a,b][1]

This commit is contained in:
Pierre-Elliott Bécue 2013-05-15 16:48:18 +02:00
parent 7c2db3dc98
commit efdd7a5cbe

View file

@ -354,7 +354,7 @@ class mail(Attr):
if str(self) in liste_exclue:
return
if attr in ["mailAlias", "canonicalAlias", 'mail']:
mail, end = str(self).split('@', 1)[0], str(self).split("@", 1)[1]
mail, end = str(self).split('@', 1)
if end.startswith('crans'):
try:
smtp = smtplib.SMTP(smtpserv)