From efdd7a5cbe04c1ed87a0c29fabb6da8d4de8160b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Wed, 15 May 2013 16:48:18 +0200 Subject: [PATCH] [attributs] a, b = [a,b] mieux que a, b = [a,b][0], [a,b][1] --- attributs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attributs.py b/attributs.py index 9fa51e2..7fed582 100644 --- a/attributs.py +++ b/attributs.py @@ -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)