diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2022-06-16 21:05:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-16 21:05:37 +0100 |
commit | ce31e1c0c7b32f6be93186e0fef076ef65ff0b05 (patch) | |
tree | 7365b3ac8bb21c5ecee71596ad56f680527efd78 /sphinx/util/docstrings.py | |
parent | 7e68154e49fbb260f7ffee9791bfafdb7fd2e119 (diff) | |
download | sphinx-git-ce31e1c0c7b32f6be93186e0fef076ef65ff0b05.tar.gz |
Remove deprecated items for Sphinx 6.0 (#10471)
Diffstat (limited to 'sphinx/util/docstrings.py')
-rw-r--r-- | sphinx/util/docstrings.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sphinx/util/docstrings.py b/sphinx/util/docstrings.py index 6f341d80e..eb3acefd4 100644 --- a/sphinx/util/docstrings.py +++ b/sphinx/util/docstrings.py @@ -2,13 +2,10 @@ import re import sys -import warnings from typing import Dict, List, Tuple from docutils.parsers.rst.states import Body -from sphinx.deprecation import RemovedInSphinx60Warning - field_list_item_re = re.compile(Body.patterns['field_marker']) @@ -41,14 +38,6 @@ def separate_metadata(s: str) -> Tuple[str, Dict[str, str]]: return '\n'.join(lines), metadata -def extract_metadata(s: str) -> Dict[str, str]: - warnings.warn("extract_metadata() is deprecated.", - RemovedInSphinx60Warning, stacklevel=2) - - docstring, metadata = separate_metadata(s) - return metadata - - def prepare_docstring(s: str, tabsize: int = 8) -> List[str]: """Convert a docstring into lines of parseable reST. Remove common leading indentation, where the indentation of the first line is ignored. |