diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2016-09-10 17:38:10 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2016-09-15 02:29:50 +0900 |
commit | d281a32b3bdbc4a2d0c609f4f2e8e48df76f2951 (patch) | |
tree | bacf287199e0849a3a284e44162aff699234f2d1 /sphinx/io.py | |
parent | cd515d568de2a397c9ffbf771f377cf5583e1d69 (diff) | |
download | sphinx-git-d281a32b3bdbc4a2d0c609f4f2e8e48df76f2951.tar.gz |
Refactor sphinx.environment: Reimplement filter_messages() as a transform
Diffstat (limited to 'sphinx/io.py')
-rw-r--r-- | sphinx/io.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sphinx/io.py b/sphinx/io.py index bc14d59aa..2b965b805 100644 --- a/sphinx/io.py +++ b/sphinx/io.py @@ -16,7 +16,8 @@ from six import string_types, text_type from sphinx.transforms import ( ApplySourceWorkaround, ExtraTranslatableNodes, PreserveTranslatableMessages, Locale, CitationReferences, DefaultSubstitutions, MoveModuleTargets, HandleCodeBlocks, - AutoNumbering, AutoIndexUpgrader, SortIds, RemoveTranslatableInline + AutoNumbering, AutoIndexUpgrader, SortIds, RemoveTranslatableInline, + FilterSystemMessages ) from sphinx.util import import_object, split_docinfo @@ -62,7 +63,7 @@ class SphinxStandaloneReader(SphinxBaseReader): transforms = [ApplySourceWorkaround, ExtraTranslatableNodes, PreserveTranslatableMessages, Locale, CitationReferences, DefaultSubstitutions, MoveModuleTargets, HandleCodeBlocks, AutoNumbering, AutoIndexUpgrader, SortIds, - RemoveTranslatableInline, PreserveTranslatableMessages] + RemoveTranslatableInline, PreserveTranslatableMessages, FilterSystemMessages] class SphinxI18nReader(SphinxBaseReader): @@ -75,7 +76,8 @@ class SphinxI18nReader(SphinxBaseReader): transforms = [ApplySourceWorkaround, ExtraTranslatableNodes, CitationReferences, DefaultSubstitutions, MoveModuleTargets, HandleCodeBlocks, - AutoNumbering, SortIds, RemoveTranslatableInline] + AutoNumbering, SortIds, RemoveTranslatableInline, + FilterSystemMessages] def __init__(self, *args, **kwargs): SphinxBaseReader.__init__(self, *args, **kwargs) |