Fixed PIE810 (multiple-starts-ends-with): Call startswith once with a tuple

This commit is contained in:
Teal Dulcet
2024-03-10 07:54:51 -04:00
committed by Joshua Tauberer
parent dd61844ced
commit 555ecc1ebb
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ def prettify_idn_email_address(email):
def is_dcv_address(email):
email = email.lower()
for localpart in ("admin", "administrator", "postmaster", "hostmaster", "webmaster", "abuse"):
if email.startswith(localpart+"@") or email.startswith(localpart+"+"):
if email.startswith((localpart + "@", localpart + "+")):
return True
return False