From f95fcbcd34e46ece9e44431f12dcf5a1e74e74ef Mon Sep 17 00:00:00 2001 From: Sagar Vora Date: Mon, 22 Aug 2022 16:19:39 +0530 Subject: [PATCH] fix(python): use set literal instead of converting list --- platform/python/MailChecker.tmpl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/python/MailChecker.tmpl.py b/platform/python/MailChecker.tmpl.py index 29c80fdb..eb2f121d 100644 --- a/platform/python/MailChecker.tmpl.py +++ b/platform/python/MailChecker.tmpl.py @@ -9,7 +9,7 @@ class MailChecker(object): - blacklist = set([{{& listSTR}}]) + blacklist = { {{& listSTR}} } valid_matcher = re.compile(r"\A{{& unanchoredRegexpString }}\Z") @classmethod @@ -37,4 +37,4 @@ def is_valid_email_format(cls, email): @classmethod def add_custom_domains(cls, domains = []): - cls.blacklist.update(domains) \ No newline at end of file + cls.blacklist.update(domains)