From feccac1eaefdc67e3ad65b93e2dcf1a2f3fa5e9d Mon Sep 17 00:00:00 2001 From: Thomas Schneider <thomas@fsmpi.rwth-aachen.de> Date: Sat, 19 Mar 2022 17:55:49 +0100 Subject: [PATCH] Use sorted() instead of list-set-sort() dance --- bin/rezelist | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/rezelist b/bin/rezelist index 7137313..b5f104a 100755 --- a/bin/rezelist +++ b/bin/rezelist @@ -32,8 +32,7 @@ def main(): output = dict() for d in config["domains"]: - # set to make unique, list to make sortable - output[d] = list( + output[d] = sorted( { a.localpart for a in addresses @@ -41,7 +40,6 @@ def main(): and a.localpart not in config["exclude"] } ) - output[d].sort() for k, v in output.items(): with open(config["output"].format(domain=k), "w") as f: -- GitLab