Skip to content

Commit 414b994

Browse files
committed
Use consolekit to provide terminal_colours and coloured_diff
1 parent 20bbb86 commit 414b994

File tree

3 files changed

+26
-25
lines changed

3 files changed

+26
-25
lines changed

domdf_python_tools/terminal_colours.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -64,29 +64,29 @@
6464
# Distributed under the BSD 3-Clause license.
6565
#
6666

67-
67+
# 3rd party
6868
from consolekit.terminal_colours import (
69-
CSI,
70-
OSC,
71-
BEL,
72-
code_to_chars,
73-
set_title,
74-
clear_line,
75-
Colour,
76-
AnsiCodes,
77-
AnsiCursor,
78-
AnsiFore,
79-
AnsiBack,
80-
AnsiStyle,
81-
Fore,
82-
Back,
83-
Style,
84-
Cursor,
85-
strip_ansi,
86-
fore_stack,
87-
back_stack,
88-
style_stack,
89-
)
69+
BEL,
70+
CSI,
71+
OSC,
72+
AnsiBack,
73+
AnsiCodes,
74+
AnsiCursor,
75+
AnsiFore,
76+
AnsiStyle,
77+
Back,
78+
Colour,
79+
Cursor,
80+
Fore,
81+
Style,
82+
back_stack,
83+
clear_line,
84+
code_to_chars,
85+
fore_stack,
86+
set_title,
87+
strip_ansi,
88+
style_stack
89+
)
9090

9191
__all__ = [
9292
"CSI",

domdf_python_tools/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,4 +610,6 @@ def check_dependencies(dependencies: Iterable[str], prt: bool = True) -> List[st
610610
removed_in="2.0.0",
611611
current_version=__version__,
612612
details="Import from :mod:`consolekit.utils` (v0.3.0 or later) instead.",
613-
)(consolekit.utils.coloured_diff)
613+
)(
614+
consolekit.utils.coloured_diff
615+
)

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
colorama>=0.4.3
1+
consolekit>=0.3.0
22
deprecation>=2.1.0
33
importlib-metadata>=1.5.0; python_version < "3.8"
44
importlib-resources>=3.0.0; python_version < "3.7"
55
packaging>=20.4
66
pydash>=4.7.4
77
typing-extensions>=3.7.4.3
8-
consolekit>=0.3.0

0 commit comments

Comments
 (0)