15
0
forked from pool/python-tld

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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tld?expand=0&rev=37
This commit is contained in:
2020-12-20 16:18:03 +00:00
committed by Git OBS Bridge
parent 317286f987
commit 7396558820
4 changed files with 34 additions and 4 deletions

View File

@@ -1,3 +1,33 @@
-------------------------------------------------------------------
Sun Dec 20 16:15:40 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
- 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 <sebix+novell.com@sebix.at>