jenkins-bot submitted this change.
[cleanup] Suppress deprecation warnings while building docs
The sphinx.util.inspect.safe_getattr() function triggers FutureWarnings for
every deprecated class as they're processed. This reduces the output of 'make
clean; make html' from 120 to 48 lines.
Change-Id: I6118efb78391c4c700d38ebb3d3a97b83c88ce8e
---
M docs/conf.py
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/docs/conf.py b/docs/conf.py
index d3e68ae..6a10812 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -23,9 +23,16 @@
import os
import re
import sys
+import warnings
+
from os.path import abspath, dirname, join
+# Deprecated classes will generate warnings as Sphinx processes them. Ignoring
+# them.
+
+warnings.simplefilter(action='ignore', category=FutureWarning)
+
docs_dir = dirname(__file__)
repo_dir = abspath(join(docs_dir, '..'))
sys.path.insert(0, repo_dir)
To view, visit change 699328. To unsubscribe, or for help writing mail filters, visit settings.