forked from karolyi/py3-validate-email
Releasing 0.2.7
This commit is contained in:
parent
0dd9910eb2
commit
20bf35ead8
|
@ -1,3 +1,8 @@
|
|||
0.2.7:
|
||||
- Increase consistency at handling domain literals
|
||||
- Clean up initial blacklist download on install
|
||||
- All improvements made by @reinhard-mueller.
|
||||
|
||||
0.2.6:
|
||||
- Introducing an EmailAddress class, thx to @reinhard-mueller
|
||||
- Added a test for making sure there's a data directory with blacklist
|
||||
|
|
2
setup.py
2
setup.py
|
@ -56,7 +56,7 @@ class BuildPyCommand(build_py):
|
|||
|
||||
setup(
|
||||
name='py3-validate-email',
|
||||
version='0.2.6',
|
||||
version='0.2.7',
|
||||
packages=find_packages(exclude=['tests']),
|
||||
install_requires=['dnspython~=1.16', 'idna~=2.8', 'filelock~=3.0'],
|
||||
author='László Károlyi',
|
||||
|
|
|
@ -52,7 +52,7 @@ class EmailAddress(object):
|
|||
def domain_literal_ip(self) -> Optional[str]:
|
||||
"""
|
||||
If the domain part of the email address is a literal IP address
|
||||
enclosed in brackets, that IP address (without the brakcets) is
|
||||
enclosed in brackets, that IP address (without the brackets) is
|
||||
returned. Otherwise, `None` is returned.
|
||||
"""
|
||||
if self._domain.startswith('[') and self._domain.endswith(']'):
|
||||
|
|
Loading…
Reference in New Issue