summaryrefslogtreecommitdiff
path: root/sphinx/util/docstrings.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/docstrings.py')
-rw-r--r--sphinx/util/docstrings.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sphinx/util/docstrings.py b/sphinx/util/docstrings.py
index 64fdbf1d7..ac778af87 100644
--- a/sphinx/util/docstrings.py
+++ b/sphinx/util/docstrings.py
@@ -4,7 +4,7 @@
Utilities for docstring processing.
- :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
+ :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
@@ -17,7 +17,6 @@ from docutils.parsers.rst.states import Body
from sphinx.deprecation import RemovedInSphinx50Warning
-
field_list_item_re = re.compile(Body.patterns['field_marker'])
@@ -57,7 +56,7 @@ def prepare_docstring(s: str, ignore: int = None, tabsize: int = 8) -> List[str]
if ignore is None:
ignore = 1
else:
- warnings.warn("The 'ignore' argument to parepare_docstring() is deprecated.",
+ warnings.warn("The 'ignore' argument to prepare_docstring() is deprecated.",
RemovedInSphinx50Warning, stacklevel=2)
lines = s.expandtabs(tabsize).splitlines()