Debian Codegraph @

docutils/writers/null.py

raw symbols SCIP
1 # $Id: null.py 10136 2025-05-20 15:48:27Z milde $
2 # Author: David Goodger <[email protected]>
3 # Copyright: This module has been placed in the public domain.
4
5 """
6 A do-nothing Writer.
7
8 `self.output` changed from ``None`` to the empty string
9 in Docutils 0.22.
10 """
11
12 from __future__ import annotations
13
14 __docformat__ = 'reStructuredText'
15
16 from docutils import writers
17
18
19 class Writer(writers.UnfilteredWriter):
20
21 supported = ('null',)
22 """Formats this writer supports."""
23
24 config_section = 'null writer'
25 config_section_dependencies = ('writers',)
26
27 def translate(self) -> None:
28 self.output = ''