summaryrefslogtreecommitdiff
path: root/sphinx/config.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-11-01 01:24:12 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-11-01 01:24:12 +0900
commit8b687ac30481e7204677138d8f2f3b49e354963e (patch)
tree7723d959db00959780dc7f9f56c673cd47d7cd97 /sphinx/config.py
parente8e0f93c3fc7a9f8be4a91c13c6ec49672347a1e (diff)
parentf4d7b2e60e4352aac6e19dad16f39328bf493ff4 (diff)
downloadsphinx-git-8b687ac30481e7204677138d8f2f3b49e354963e.tar.gz
Merge branch '1.8'
Diffstat (limited to 'sphinx/config.py')
-rw-r--r--sphinx/config.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/config.py b/sphinx/config.py
index c3a81291f..45ba9f7d9 100644
--- a/sphinx/config.py
+++ b/sphinx/config.py
@@ -161,7 +161,7 @@ class Config:
# old style arguments: (dirname, filename, overrides, tags)
warnings.warn('The argument of Config() class has been changed. '
'Use Config.read() to read configuration from conf.py.',
- RemovedInSphinx30Warning)
+ RemovedInSphinx30Warning, stacklevel=2)
dirname, filename, overrides, tags = args
if dirname is None:
config = {} # type: Dict[unicode, Any]
@@ -199,13 +199,13 @@ class Config:
def check_types(self):
# type: () -> None
warnings.warn('Config.check_types() is deprecated. Use check_confval_types() instead.',
- RemovedInSphinx30Warning)
+ RemovedInSphinx30Warning, stacklevel=2)
check_confval_types(None, self)
def check_unicode(self):
# type: () -> None
warnings.warn('Config.check_unicode() is deprecated. Use check_unicode() instead.',
- RemovedInSphinx30Warning)
+ RemovedInSphinx30Warning, stacklevel=2)
check_unicode(self)
def convert_overrides(self, name, value):