Kaydet (Commit) ccd8b19c authored tarafından Guido van Rossum's avatar Guido van Rossum

Add provisions to set the (to be documented!) instance variable

'writer' of the NullFormatter to the writter passed in, or to a
NullWriter if none (or None) is passed in.
üst 36fc11e8
......@@ -10,7 +10,10 @@ AS_IS = None
class NullFormatter:
def __init__(self, writer): pass
def __init__(self, writer=None):
if not writer:
writer = NullWriter()
self.writer = writer
def end_paragraph(self, blankline): pass
def add_line_break(self): pass
def add_hor_rule(self, abswidth=None, percentwidth=1.0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment