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/highlighting.py | |
parent | e8e0f93c3fc7a9f8be4a91c13c6ec49672347a1e (diff) | |
parent | f4d7b2e60e4352aac6e19dad16f39328bf493ff4 (diff) |
Merge branch '1.8'
Diffstat (limited to 'sphinx/highlighting.py')
-rw-r--r-- | sphinx/highlighting.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/highlighting.py b/sphinx/highlighting.py index e61a891a0..b12fa6e2e 100644 --- a/sphinx/highlighting.py +++ b/sphinx/highlighting.py @@ -91,7 +91,7 @@ class PygmentsBridge: self.trim_doctest_flags = trim_doctest_flags if trim_doctest_flags is not None: warnings.warn('trim_doctest_flags option for PygmentsBridge is now deprecated.', - RemovedInSphinx30Warning) + RemovedInSphinx30Warning, stacklevel=2) def get_formatter(self, **kwargs): # type: (Any) -> Formatter @@ -101,7 +101,7 @@ class PygmentsBridge: def unhighlighted(self, source): # type: (unicode) -> unicode warnings.warn('PygmentsBridge.unhighlighted() is now deprecated.', - RemovedInSphinx30Warning) + RemovedInSphinx30Warning, stacklevel=2) if self.dest == 'html': return '<pre>' + htmlescape(source) + '</pre>\n' else: |