1
0
의 미러 https://github.com/mail-in-a-box/mailinabox.git synced 2025-12-30 05:38:50 +01:00

Fixed SIM118 (in-dict-keys): Use key in dict instead of key in dict.keys()

This commit is contained in:
Teal Dulcet 2023-12-22 07:23:15 -08:00 committed by Joshua Tauberer
부모 ec32e1d578
커밋 f621789298

파일 보기

@ -266,7 +266,7 @@ def provision_certificates(env, limit_domains):
certs[zone] = [[]] certs[zone] = [[]]
for domain in sort_domains(domains, env): for domain in sort_domains(domains, env):
# Does the domain end with any domain we've seen so far. # Does the domain end with any domain we've seen so far.
for parent in certs.keys(): for parent in certs:
if domain.endswith("." + parent): if domain.endswith("." + parent):
# Add this to the parent's list of domains. # Add this to the parent's list of domains.
# Start a new group if the list already has # Start a new group if the list already has