VirtualMailManager/Alias.py
changeset 144 4c6aa6c29dd7
parent 138 617f27715b01
child 146 a08d78344706
--- a/VirtualMailManager/Alias.py	Sat Sep 05 18:01:04 2009 +0000
+++ b/VirtualMailManager/Alias.py	Sat Sep 05 18:46:33 2009 +0000
@@ -96,9 +96,7 @@
         destinations = dbc.fetchall()
         dbc.close()
         if len(destinations) > 0:
-            targets = []
-            for destination in destinations:
-                targets.append(destination[0])
+            targets = [destination[0] for destination in destinations]
             return targets
         else:
             raise VMMAE(_(u"The alias ā€œ%sā€ doesn't exists.") % self._addr,