diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-10-31 19:24:12 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-10-31 19:24:12 +0300 |
commit | 8b687ac30481e7204677138d8f2f3b49e354963e (patch) | |
tree | 7723d959db00959780dc7f9f56c673cd47d7cd97 /sphinx/registry.py | |
parent | e8e0f93c3fc7a9f8be4a91c13c6ec49672347a1e (diff) | |
parent | f4d7b2e60e4352aac6e19dad16f39328bf493ff4 (diff) |
Merge branch '1.8'
Diffstat (limited to 'sphinx/registry.py')
-rw-r--r-- | sphinx/registry.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/registry.py b/sphinx/registry.py index d641c0529..f47c5e71a 100644 --- a/sphinx/registry.py +++ b/sphinx/registry.py @@ -186,7 +186,7 @@ class SphinxComponentRegistry: # type: (Type[Domain]) -> None warnings.warn('registry.override_domain() is deprecated. ' 'Use app.add_domain(domain, override=True) instead.', - RemovedInSphinx30Warning) + RemovedInSphinx30Warning, stacklevel=2) self.add_domain(domain, override=True) def add_directive_to_domain(self, domain, name, obj, has_content=None, argument_spec=None, @@ -291,7 +291,7 @@ class SphinxComponentRegistry: # old style arguments: (suffix, source_parser) warnings.warn('app.add_source_parser() does not support suffix argument. ' 'Use app.add_source_suffix() instead.', - RemovedInSphinx30Warning) + RemovedInSphinx30Warning, stacklevel=3) suffix = args[0] parser = args[1] @@ -301,7 +301,7 @@ class SphinxComponentRegistry: if len(parser.supported) == 0: warnings.warn('Old source_parser has been detected. Please fill Parser.supported ' 'attribute: %s' % parser.__name__, - RemovedInSphinx30Warning) + RemovedInSphinx30Warning, stacklevel=3) # create a map from filetype to parser for filetype in parser.supported: |