diff options
Diffstat (limited to 'Lib/dos-8x3/formatte.py')
-rwxr-xr-x | Lib/dos-8x3/formatte.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/dos-8x3/formatte.py b/Lib/dos-8x3/formatte.py index c192e20..79be0f6 100755 --- a/Lib/dos-8x3/formatte.py +++ b/Lib/dos-8x3/formatte.py @@ -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, |