diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-05-30 21:09:09 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-05-30 21:09:09 +0000 |
| commit | b30e3ef5acc92de1eab6c6c10e8fdcfed82d8bef (patch) | |
| tree | d6d1c8c651b170b5f7a50c8bda58f7177104930f /docutils | |
| parent | 74aca379e45cf369064f9e791d4d1e96e8a0ee77 (diff) | |
| download | docutils-b30e3ef5acc92de1eab6c6c10e8fdcfed82d8bef.tar.gz | |
Postpone deprecations to Docutils 2.0
Starting in 1.0, we want to move to "semantic versioning":
no incompatible API changes in "minor" releases.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9062 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils')
| -rw-r--r-- | docutils/__init__.py | 2 | ||||
| -rw-r--r-- | docutils/io.py | 2 | ||||
| -rw-r--r-- | docutils/nodes.py | 2 | ||||
| -rw-r--r-- | docutils/parsers/rst/directives/html.py | 4 | ||||
| -rw-r--r-- | docutils/utils/__init__.py | 2 | ||||
| -rw-r--r-- | docutils/writers/_html_base.py | 4 | ||||
| -rw-r--r-- | docutils/writers/latex2e/__init__.py | 2 |
7 files changed, 9 insertions, 9 deletions
diff --git a/docutils/__init__.py b/docutils/__init__.py index 128ad5868..9eeebbf99 100644 --- a/docutils/__init__.py +++ b/docutils/__init__.py @@ -228,7 +228,7 @@ class TransformSpec: if self.default_transforms != (): import warnings warnings.warn('TransformSpec: the "default_transforms" attribute ' - 'will be removed in Docutils 1.1.\n' + 'will be removed in Docutils 2.0.\n' 'Use get_transforms() method instead.', DeprecationWarning) return list(self.default_transforms) diff --git a/docutils/io.py b/docutils/io.py index daa7a0b3f..352d991fc 100644 --- a/docutils/io.py +++ b/docutils/io.py @@ -438,7 +438,7 @@ class FileOutput(Output): if handle_io_errors is not None: warnings.warn('io.FileOutput: init argument "handle_io_errors" ' 'is ignored and will be removed in ' - 'Docutils 1.2.', DeprecationWarning, stacklevel=2) + 'Docutils 2.0.', DeprecationWarning, stacklevel=2) if mode is not None: self.mode = mode self._stderr = ErrorOutput() diff --git a/docutils/nodes.py b/docutils/nodes.py index 4141b8520..abbb698fd 100644 --- a/docutils/nodes.py +++ b/docutils/nodes.py @@ -389,7 +389,7 @@ class Text(Node, str): raise TypeError('expecting str data, not bytes') if rawsource is not None: warnings.warn('nodes.Text: initialization argument "rawsource" ' - 'is ignored and will be removed in Docutils 1.3.', + 'is ignored and will be removed in Docutils 2.0.', DeprecationWarning, stacklevel=2) return str.__new__(cls, data) diff --git a/docutils/parsers/rst/directives/html.py b/docutils/parsers/rst/directives/html.py index 62ce89067..861f4026d 100644 --- a/docutils/parsers/rst/directives/html.py +++ b/docutils/parsers/rst/directives/html.py @@ -5,7 +5,7 @@ """ Dummy module for backwards compatibility. -This module is provisional: it will be removed in Docutils version 1.2. +This module is provisional: it will be removed in Docutils 2.0. """ __docformat__ = 'reStructuredText' @@ -15,7 +15,7 @@ import warnings from docutils.parsers.rst.directives.misc import MetaBody, Meta # noqa: F401 warnings.warn('The `docutils.parsers.rst.directive.html` module' - ' will be removed in Docutils 1.2.' + ' will be removed in Docutils 2.0.' ' Since Docutils 0.18, the "Meta" node is defined in' ' `docutils.parsers.rst.directives.misc`.', DeprecationWarning, stacklevel=2) diff --git a/docutils/utils/__init__.py b/docutils/utils/__init__.py index 2819e3f4a..4719e6f52 100644 --- a/docutils/utils/__init__.py +++ b/docutils/utils/__init__.py @@ -510,7 +510,7 @@ def get_stylesheet_reference(settings, relative_to=None): """ warnings.warn('utils.get_stylesheet_reference()' ' is obsoleted by utils.get_stylesheet_list()' - ' and will be removed in Docutils 1.2.', + ' and will be removed in Docutils 2.0.', DeprecationWarning, stacklevel=2) if settings.stylesheet_path: assert not settings.stylesheet, ( diff --git a/docutils/writers/_html_base.py b/docutils/writers/_html_base.py index 3675823e5..d0d2d58e8 100644 --- a/docutils/writers/_html_base.py +++ b/docutils/writers/_html_base.py @@ -308,14 +308,14 @@ class HTMLTranslator(nodes.NodeVisitor): # legacy setting embed_images: if getattr(settings, 'embed_images', None) is True: warnings.warn('The configuration setting "embed_images" ' - 'will be removed in Docutils 1.2. ' + 'will be removed in Docutils 2.0. ' 'Use "image_loading: embed".', FutureWarning, stacklevel=8) if self.image_loading is None: self.image_loading = 'embed' if getattr(settings, 'embed_images', None) is False: warnings.warn('The configuration setting "embed_images" ' - 'will be removed in Docutils 1.2. ' + 'will be removed in Docutils 2.0. ' 'Use "image_loading: link".', FutureWarning, stacklevel=8) if self.image_loading is None: diff --git a/docutils/writers/latex2e/__init__.py b/docutils/writers/latex2e/__init__.py index bf43c62e5..d9065c3c3 100644 --- a/docutils/writers/latex2e/__init__.py +++ b/docutils/writers/latex2e/__init__.py @@ -1182,7 +1182,7 @@ class LaTeXTranslator(nodes.NodeVisitor): if settings.use_verbatim_when_possible is not None: warnings.warn( 'The configuration setting "use_verbatim_when_possible" ' - 'will be removed in Docutils 1.2. ' + 'will be removed in Docutils 2.0. ' 'Use "literal_block_env: verbatim".', FutureWarning, stacklevel=7) |
