1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-18 18:07:22 +01:00

Fixed PLW0108 (unnecessary-lambda): Lambda may be unnecessary; consider inlining inner function

This commit is contained in:
Teal Dulcet
2023-12-22 07:19:47 -08:00
committed by Joshua Tauberer
parent 3d72c32b1d
commit 67b9d0b279
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ def get_dns_zones(env):
# Exclude domains that are subdomains of other domains we know. Proceed
# by looking at shorter domains first.
zone_domains = set()
for domain in sorted(domains, key=lambda d : len(d)):
for domain in sorted(domains, key=len):
for d in zone_domains:
if domain.endswith("." + d):
# We found a parent domain already in the list.