diff --git a/python-tld.changes b/python-tld.changes index 180eed9..6cc1aba 100644 --- a/python-tld.changes +++ b/python-tld.changes @@ -1,3 +1,33 @@ +------------------------------------------------------------------- +Sun Dec 20 16:15:40 UTC 2020 - Sebastian Wagner + +- Update to version 0.12.3: + - Separate parsers for (a) public and private and (b) public only domains. This + fixes a bug. If you want an old behaviour: + The following code would raise exception in past. + .. code-block:: python + from tld import get_tld + get_tld( + 'http://silly.cc.ua', + search_private=False + ) + Now it would return `ua`. + .. code-block:: python + get_tld( + 'http://silly.cc.ua', + search_private=False + ) + If you want old behavior, do as follows: + .. code-block:: python + from tld.utils import MozillaTLDSourceParser + get_tld( + 'http://silly.cc.ua', + search_private=False, + parser_class=MozillaTLDSourceParser + ) + Same goes for ``get_fld``, ``process_url``, ``parse_tld`` and ``is_tld`` + functions. + ------------------------------------------------------------------- Thu May 21 11:35:30 UTC 2020 - Sebastian Wagner diff --git a/python-tld.spec b/python-tld.spec index 4117cdd..6db2518 100644 --- a/python-tld.spec +++ b/python-tld.spec @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-tld -Version: 0.12.2 +Version: 0.12.3 Release: 0 Summary: URL top level domain (TLD) extraction module License: MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-or-later diff --git a/tld-0.12.2.tar.gz b/tld-0.12.2.tar.gz deleted file mode 100644 index 2f81e88..0000000 --- a/tld-0.12.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cf8410a7ed7b9477f563fa158dabef5117d8374cba55f65142ba0af6dcd15d4d -size 898244 diff --git a/tld-0.12.3.tar.gz b/tld-0.12.3.tar.gz new file mode 100644 index 0000000..91e29b8 --- /dev/null +++ b/tld-0.12.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1959d0db03b7644f5528748f348d5eecdcd27120a8bb4ef00d932b1b1acdf13d +size 1129018