Skip to content

Commit 87d3402

Browse files
committed
git mv sphinx/util/console.py sphinx/_cli/console_utilities.py
1 parent 5ed06f5 commit 87d3402

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
File renamed without changes.

sphinx/util/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717
Optional, Pattern, Set, Tuple, Type, TypeVar)
1818
from urllib.parse import parse_qsl, quote_plus, urlencode, urlsplit, urlunsplit
1919

20+
from sphinx._cli.console_utilities import (bold, colorize, strip_colors, # type: ignore
21+
term_width_line)
2022
from sphinx.deprecation import RemovedInSphinx70Warning
2123
from sphinx.errors import ExtensionError, FiletypeNotFoundError, SphinxParallelError
2224
from sphinx.locale import __
2325
from sphinx.util import logging
24-
from sphinx.util.console import bold, colorize, strip_colors, term_width_line # type: ignore
2526
from sphinx.util.matching import patfilter # noqa
2627
from sphinx.util.nodes import (caption_ref_re, explicit_title_re, # noqa
2728
nested_parse_with_titles, split_explicit_title)

tests/test_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_import_object():
7171

7272

7373
@pytest.mark.sphinx('dummy')
74-
@patch('sphinx.util.console._tw', 40) # terminal width = 40
74+
@patch('sphinx._cli.console_utilities._tw', 40) # terminal width = 40
7575
def test_status_iterator(app, status, warning):
7676
logging.setup(app, status, warning)
7777

0 commit comments

Comments
 (0)