diff options
Diffstat (limited to 'sphinx/util/docutils.py')
| -rw-r--r-- | sphinx/util/docutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/docutils.py b/sphinx/util/docutils.py index 547d74c17..3d957767b 100644 --- a/sphinx/util/docutils.py +++ b/sphinx/util/docutils.py @@ -148,7 +148,7 @@ class ElementLookupError(Exception): pass -class sphinx_domains(object): +class sphinx_domains: """Monkey-patch directive and role dispatch, so that domain-specific markup takes precedence. """ @@ -223,7 +223,7 @@ class sphinx_domains(object): return self.role_func(name, lang_module, lineno, reporter) -class WarningStream(object): +class WarningStream: def write(self, text): # type: (unicode) -> None matched = report_re.search(text) # type: ignore |
