Update to 1.2.19
This commit is contained in:
parent
ccdc0c919e
commit
d9bd39ef90
@ -15,7 +15,7 @@ def is_free(email_address):
|
||||
|
||||
with open(free_file, 'r') as free, open(disp_file, 'r') as disposable:
|
||||
domain_list = free.read().splitlines() + disposable.read().splitlines()
|
||||
domain = tldextract.extract(email_address.split('@')[1]).registered_domain
|
||||
domain = tldextract.extract(email_address).registered_domain
|
||||
|
||||
return domain in domain_list
|
||||
|
||||
@ -28,7 +28,7 @@ def is_disposable(email_address):
|
||||
|
||||
with open(disp_file, 'r') as disposable:
|
||||
domain_list = disposable.read().splitlines()
|
||||
domain = tldextract.extract(email_address.split('@')[1]).registered_domain
|
||||
domain = tldextract.extract(email_address).registered_domain
|
||||
|
||||
return domain in domain_list
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
2
setup.py
2
setup.py
@ -20,7 +20,7 @@ setup(
|
||||
# Versions should comply with PEP440. For a discussion on single-sourcing
|
||||
# the version across setup.py and the project code, see
|
||||
# https://packaging.python.org/en/latest/single_source_version.html
|
||||
version='1.2.18',
|
||||
version='1.2.19',
|
||||
|
||||
description='A database of free and disposable email domains',
|
||||
long_description=long_description,
|
||||
|
Loading…
x
Reference in New Issue
Block a user