VirtualMailManager/Alias.py
branchv0.6.x
changeset 223 5c7b7cbb01cd
parent 222 d0c16e70a9fb
child 250 73cd082cd724
--- a/VirtualMailManager/Alias.py	Sun Feb 28 20:51:34 2010 +0000
+++ b/VirtualMailManager/Alias.py	Mon Mar 01 02:31:03 2010 +0000
@@ -43,9 +43,7 @@
                     self._gid, self._addr.localpart)
         dests = iter(dbc.fetchall())
         if dbc.rowcount > 0:
-            dest_add = self._dests.append
-            for dest in dests:
-                dest_add(EmailAddress(dest[0]))
+            self._dests.extend(EmailAddress(dest[0]) for dest in dests)
         dbc.close()
 
     def __check_expansion(self, count_new, limit):