The usual... Sigh...

This commit is contained in:
Guido van Rossum 1996-10-08 14:13:43 +00:00
parent 6592f88fc0
commit b8cc6ae5a1
10 changed files with 34 additions and 14 deletions

View file

@ -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,