File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff 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 """
Original file line number Diff line number Diff line change 6666
6767# stdlib
6868import re
69+ import warnings
6970from abc import ABC
7071from typing import List , Pattern
7172
7273# 3rd party
73- from colorama import init # type: ignore
74+ import colorama # type: ignore
7475from typing_extensions import Final
7576
7677__all__ = [
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
99107CSI : Final [str ] = "\u001b ["
100108OSC : Final [str ] = "\u001b ]"
You can’t perform that action at this time.
0 commit comments