# $Id: null.py 9810 2024-08-01 07:22:07Z aa-turner $ # Author: David Goodger # Copyright: This module has been placed in the public domain. """ A do-nothing Writer. `self.output` changed from ``None`` to the empty string in Docutils 0.22. """ from docutils import writers class Writer(writers.UnfilteredWriter): supported = ('null',) """Formats this writer supports.""" config_section = 'null writer' config_section_dependencies = ('writers',) def translate(self) -> None: self.output = ''