Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-05-03 16:40:19 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-05-03 17:34:35 +0300
commit41b4a77dea51cf5eb16f9a3fdc27426827313d54 (patch)
treeaad1d45e1e780ef69a4872d1d4122d5292fc0755 /sphinx/config.py
parenta5cba8cdbb9f44721885c8555bf875df1f59e199 (diff)
Add stacklevel parameter to warnings.warn() call
Diffstat (limited to 'sphinx/config.py')
-rw-r--r--sphinx/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/config.py b/sphinx/config.py
index 19a8f6c4f..6e6c256c5 100644
--- a/sphinx/config.py
+++ b/sphinx/config.py
@@ -444,7 +444,7 @@ def check_unicode(config: Config) -> None:
since that can result in UnicodeErrors all over the place
"""
warnings.warn('sphinx.config.check_unicode() is deprecated.',
- RemovedInSphinx40Warning)
+ RemovedInSphinx40Warning, stacklevel=2)
nonascii_re = re.compile(br'[\x80-\xff]')