Update to 1.2.19

This commit is contained in:
Allard Stijnman 2018-06-08 17:04:14 +02:00
parent ccdc0c919e
commit d9bd39ef90
3 changed files with 2972 additions and 3 deletions

View File

@ -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

View File

@ -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,