Skip to content
Snippets Groups Projects
Commit feccac1e authored by Thomas Schneider's avatar Thomas Schneider
Browse files

Use sorted() instead of list-set-sort() dance

parent e0c59d83
No related branches found
No related tags found
No related merge requests found
Pipeline #3888 passed
...@@ -32,8 +32,7 @@ def main(): ...@@ -32,8 +32,7 @@ def main():
output = dict() output = dict()
for d in config["domains"]: for d in config["domains"]:
# set to make unique, list to make sortable output[d] = sorted(
output[d] = list(
{ {
a.localpart a.localpart
for a in addresses for a in addresses
...@@ -41,7 +40,6 @@ def main(): ...@@ -41,7 +40,6 @@ def main():
and a.localpart not in config["exclude"] and a.localpart not in config["exclude"]
} }
) )
output[d].sort()
for k, v in output.items(): for k, v in output.items():
with open(config["output"].format(domain=k), "w") as f: with open(config["output"].format(domain=k), "w") as f:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment