diff options
| author | Georg Brandl <georg@python.org> | 2013-03-29 12:28:38 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2013-03-29 12:28:38 +0100 |
| commit | f44fa45baf08225fc7cfc847b090a2169b22ba72 (patch) | |
| tree | 5e7309ab3c4ccac1c2a96da0d8e74d830e2ff8b7 /sphinx | |
| parent | ec38679f4f86e6da51f239afd2327f81ef7ba075 (diff) | |
| download | sphinx-f44fa45baf08225fc7cfc847b090a2169b22ba72.tar.gz | |
remove xfileref_role() and directive_dwim() which were deprecated in 1.0
Diffstat (limited to 'sphinx')
| -rw-r--r-- | sphinx/roles.py | 8 | ||||
| -rw-r--r-- | sphinx/util/compat.py | 10 |
2 files changed, 0 insertions, 18 deletions
diff --git a/sphinx/roles.py b/sphinx/roles.py index 02c5ad8f..6703b6b8 100644 --- a/sphinx/roles.py +++ b/sphinx/roles.py @@ -10,7 +10,6 @@ """ import re -import warnings from docutils import nodes, utils from docutils.parsers.rst import roles @@ -316,10 +315,3 @@ specific_docroles = { for rolename, func in specific_docroles.iteritems(): roles.register_local_role(rolename, func) - - -# backwards compatibility alias -def xfileref_role(*args, **kwds): - warnings.warn('xfileref_role is deprecated, use XRefRole', - DeprecationWarning, stacklevel=2) - return XRefRole()(*args, **kwds) diff --git a/sphinx/util/compat.py b/sphinx/util/compat.py index 916f6fa3..94623079 100644 --- a/sphinx/util/compat.py +++ b/sphinx/util/compat.py @@ -33,14 +33,4 @@ def make_admonition(node_class, name, arguments, options, content, lineno, state.nested_parse(content, content_offset, admonition_node) return [admonition_node] - -# backwards-compatibility aliases for helpers in older Sphinx versions that -# supported the docutils 0.4 directive function interface - from docutils.parsers.rst import Directive - -def directive_dwim(obj): - import warnings - warnings.warn('directive_dwim is deprecated and no longer needed', - DeprecationWarning, stacklevel=2) - return obj |
