use stacklevel=2 for easier debugging

This commit is contained in:
Benjamin Peterson 2008-12-27 14:14:10 -06:00
parent 38fff57d72
commit 7433721617

View File

@ -25,4 +25,4 @@ from sphinx.builders.linkcheck import CheckExternalLinksBuilder
warnings.warn('The sphinx.builder module is deprecated; please import '
'builders from the respective sphinx.builders submodules.',
DeprecationWarning)
DeprecationWarning, stacklevel=2)