Name
NullFormatter
Synopsis
class NullFormatter(writer
=None)
A formatter implementation whose methods are do-nothing stubs. When
writer
is None
,
instantiates NullWriter
. Suitable when you
subclass HMTLParser
to analyze an HTML document
but don’t want any output to happen.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.