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(
567
567
rather than :meth:`PathPlus.write_text <domdf_python_tools.paths.PathPlus.write_text>`,
568
568
and returns :py:obj:`None` rather than :class:`int`.
569
569
570
- .. versionchanged:: 1.8 .0
570
+ .. versionchanged:: 1.9 .0
571
571
572
572
Added the ``compress`` keyword-only argument.
573
573
"""
@@ -606,7 +606,7 @@ def load_json(
606
606
607
607
.. versionadded:: 0.5.0
608
608
609
- .. versionchanged:: 1.8 .0
609
+ .. versionchanged:: 1.9 .0
610
610
611
611
Added the ``compress`` keyword-only argument.
612
612
"""
Original file line number Diff line number Diff line change 66
66
67
67
# stdlib
68
68
import re
69
+ import warnings
69
70
from abc import ABC
70
71
from typing import List , Pattern
71
72
72
73
# 3rd party
73
- from colorama import init # type: ignore
74
+ import colorama # type: ignore
74
75
from typing_extensions import Final
75
76
76
77
__all__ = [
94
95
"strip_ansi" ,
95
96
]
96
97
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 ()
98
106
99
107
CSI : Final [str ] = "\u001b ["
100
108
OSC : Final [str ] = "\u001b ]"
You can’t perform that action at this time.
0 commit comments