[Python-checkins] r83660 - python/branches/py3k/Doc/tools/sphinx-build.py
georg.brandl
python-checkins at python.org
Tue Aug 3 14:32:00 CEST 2010
Author: georg.brandl
Date: Tue Aug 3 14:31:59 2010
New Revision: 83660
Log:
Get rid of UserWarnings when running Sphinx from tools dir.
Modified:
python/branches/py3k/Doc/tools/sphinx-build.py
Modified: python/branches/py3k/Doc/tools/sphinx-build.py
==============================================================================
--- python/branches/py3k/Doc/tools/sphinx-build.py (original)
+++ python/branches/py3k/Doc/tools/sphinx-build.py Tue Aug 3 14:31:59 2010
@@ -3,11 +3,15 @@
Sphinx - Python documentation toolchain
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- :copyright: 2007 by Georg Brandl.
+ :copyright: 2007-2010 by Georg Brandl.
:license: Python license.
"""
import sys
+import warnings
+
+# Get rid of UserWarnings reported by pkg_resources.
+warnings.filterwarnings('ignore', category=UserWarning, module='jinja2')
if __name__ == '__main__':
More information about the Python-checkins
mailing list