Skip to content

Commit

Permalink
fix(python): use set literal instead of converting list
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarvora committed Aug 22, 2022
1 parent 198ab3f commit f95fcbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/python/MailChecker.tmpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class MailChecker(object):

blacklist = set([{{& listSTR}}])
blacklist = { {{& listSTR}} }
valid_matcher = re.compile(r"\A{{& unanchoredRegexpString }}\Z")

@classmethod
Expand Down Expand Up @@ -37,4 +37,4 @@ def is_valid_email_format(cls, email):

@classmethod
def add_custom_domains(cls, domains = []):
cls.blacklist.update(domains)
cls.blacklist.update(domains)

0 comments on commit f95fcbc

Please sign in to comment.