Skip to content

Commit bb308c6

Browse files
committed
Changes are now for 1.9.0
1 parent 17d655d commit bb308c6

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

domdf_python_tools/paths.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ def dump_json(
567567
rather than :meth:`PathPlus.write_text <domdf_python_tools.paths.PathPlus.write_text>`,
568568
and returns :py:obj:`None` rather than :class:`int`.
569569
570-
.. versionchanged:: 1.8.0
570+
.. versionchanged:: 1.9.0
571571
572572
Added the ``compress`` keyword-only argument.
573573
"""
@@ -606,7 +606,7 @@ def load_json(
606606
607607
.. versionadded:: 0.5.0
608608
609-
.. versionchanged:: 1.8.0
609+
.. versionchanged:: 1.9.0
610610
611611
Added the ``compress`` keyword-only argument.
612612
"""

domdf_python_tools/terminal_colours.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@
6666

6767
# stdlib
6868
import re
69+
import warnings
6970
from abc import ABC
7071
from typing import List, Pattern
7172

7273
# 3rd party
73-
from colorama import init # type: ignore
74+
import colorama # type: ignore
7475
from typing_extensions import Final
7576

7677
__all__ = [
@@ -94,7 +95,14 @@
9495
"strip_ansi",
9596
]
9697

97-
init()
98+
warnings.warn(
99+
"domdf_python_tools.terminal_colours is deprecated and will be removed in v2. "
100+
"Use consolekit.terminal_colours instead.",
101+
DeprecationWarning,
102+
stacklevel=2,
103+
)
104+
105+
colorama.init()
98106

99107
CSI: Final[str] = "\u001b["
100108
OSC: Final[str] = "\u001b]"

0 commit comments

Comments
 (0)