Skip to content

Commit

Permalink
Prepare 0.12.3
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed Nov 26, 2020
1 parent 61ee0be commit fe16978
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
44 changes: 43 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Release history and notes
<http://en.wikipedia.org/wiki/Software_versioning#Sequence-based_identifiers>`_
are used for versioning (schema follows below):

.. code-block:: none
.. code-block:: text
major.minor[.revision]
Expand All @@ -15,6 +15,48 @@ are used for versioning (schema follows below):
0.3.4 to 0.4).
- All backwards incompatible changes are mentioned in this document.

0.12.3
------
2020-11-26

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

0.12.2
------
2020-05-20
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
except:
readme = ''

version = '0.12.2'
version = '0.12.3'

py_where = './src'
py_package_dir = 'src'
Expand Down
2 changes: 1 addition & 1 deletion src/tld/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
)

__title__ = 'tld'
__version__ = '0.12.2'
__version__ = '0.12.3'
__author__ = 'Artur Barseghyan'
__copyright__ = '2013-2020 Artur Barseghyan'
__license__ = 'MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-or-later'
Expand Down

0 comments on commit fe16978

Please sign in to comment.