summaryrefslogtreecommitdiff
path: root/sphinx/util/docutils.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-03-01 22:21:43 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-03-01 22:29:50 +0900
commitc435bcf8dc5c07e9ccb32ce55399cba10bb33d77 (patch)
treeda9ca901ee566750e0a6552190ef0628c31cf3aa /sphinx/util/docutils.py
parent6bce06757fe6b81aebb34eb5f4a6a4b2bf7ba1f3 (diff)
downloadsphinx-git-c435bcf8dc5c07e9ccb32ce55399cba10bb33d77.tar.gz
Fix #4685: autosummary emits meaningless warnings
Diffstat (limited to 'sphinx/util/docutils.py')
-rw-r--r--sphinx/util/docutils.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/sphinx/util/docutils.py b/sphinx/util/docutils.py
index 0fb544f49..a1ae3b31e 100644
--- a/sphinx/util/docutils.py
+++ b/sphinx/util/docutils.py
@@ -185,6 +185,14 @@ class LoggingReporter(Reporter):
stream, debug, error_handler=error_handler)
+class NullReporter(Reporter):
+ """A dummy reporter; write nothing."""
+
+ def __init__(self):
+ # type: () -> None
+ Reporter.__init__(self, '', 999, 4)
+
+
def is_html5_writer_available():
# type: () -> bool
return __version_info__ > (0, 13, 0)