VirtualMailManager/EmailAddress.py
changeset 87 f9090d1a0730
parent 76 14c0a092d7d2
child 102 485d3f7d6981
--- a/VirtualMailManager/EmailAddress.py	Tue Sep 16 05:55:54 2008 +0000
+++ b/VirtualMailManager/EmailAddress.py	Tue Sep 16 20:03:09 2008 +0000
@@ -75,10 +75,10 @@
         if len(localpart) > 64:
             raise VMMEAE(_(u'The local part »%s« is too long') %
                 localpart, ERR.LOCALPART_TOO_LONG)
-        ic = re.compile(RE_LOCALPART).findall(localpart)
+        ic = set(re.findall(RE_LOCALPART, localpart))
         if len(ic):
             ichrs = ''
-            for c in set(ic):
+            for c in ic:
                 ichrs += u"»%s« " % c
             raise VMMEAE(_(u"The local part »%(lpart)s« contains invalid\
  characters: %(ichrs)s") % {'lpart': localpart, 'ichrs': ichrs},