diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-05-03 16:40:19 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-05-03 17:34:35 +0300 |
commit | 41b4a77dea51cf5eb16f9a3fdc27426827313d54 (patch) | |
tree | aad1d45e1e780ef69a4872d1d4122d5292fc0755 /sphinx/application.py | |
parent | a5cba8cdbb9f44721885c8555bf875df1f59e199 (diff) |
Add stacklevel parameter to warnings.warn() call
Diffstat (limited to 'sphinx/application.py')
-rw-r--r-- | sphinx/application.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/application.py b/sphinx/application.py index d2fd776ff..4014a2efa 100644 --- a/sphinx/application.py +++ b/sphinx/application.py @@ -990,7 +990,7 @@ class Sphinx: if isinstance(lexer, Lexer): warnings.warn('app.add_lexer() API changed; ' 'Please give lexer class instead instance', - RemovedInSphinx40Warning) + RemovedInSphinx40Warning, stacklevel=2) lexers[alias] = lexer else: lexer_classes[alias] = lexer |