Skip to content

Commit d80c398

Browse files
committed
DOC: Replace skip_deprecated extension by standard Sphinx metadata
1 parent 462e6a6 commit d80c398

3 files changed

Lines changed: 6 additions & 22 deletions

File tree

doc/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ def _parse_skip_subdirs_file():
134134
'sphinxext.mock_gui_toolkits',
135135
'sphinxext.rcparams',
136136
'sphinxext.redirect_from',
137-
'sphinxext.skip_deprecated',
138137
'sphinx_copybutton',
139138
'sphinx_design',
140139
'sphinx_tags',

doc/sphinxext/skip_deprecated.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

lib/matplotlib/colors.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -579,17 +579,19 @@ def to_hex(c, keep_alpha=False):
579579
### Backwards-compatible color-conversion API
580580

581581

582-
cnames = CSS4_COLORS
583-
hexColorPattern = re.compile(r"\A#[a-fA-F0-9]{6}\Z")
584-
rgb2hex = to_hex
585-
hex2color = to_rgb
582+
cnames = CSS4_COLORS #: :meta private:
583+
hexColorPattern = re.compile(r"\A#[a-fA-F0-9]{6}\Z") #: :meta private:
584+
rgb2hex = to_hex #: :meta private:
585+
hex2color = to_rgb #: :meta private:
586586

587587

588588
class ColorConverter:
589589
"""
590590
A class only kept for backwards compatibility.
591591
592592
Its functionality is entirely provided by module-level functions.
593+
594+
:meta private:
593595
"""
594596
colors = _colors_full_map
595597
cache = _colors_full_map.cache

0 commit comments

Comments
 (0)