summaryrefslogtreecommitdiffstats
path: root/Lib/dos-8x3/formatte.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-10-08 14:13:43 (GMT)
committerGuido van Rossum <guido@python.org>1996-10-08 14:13:43 (GMT)
commitb8cc6ae5a1e8e548c8c2619e20fb1898ab2521f5 (patch)
tree72e5d9cf750cb8eb7f6196db295adabbf126c340 /Lib/dos-8x3/formatte.py
parent6592f88fc0598aa465f214de0dd4eb5c58229976 (diff)
downloadcpython-b8cc6ae5a1e8e548c8c2619e20fb1898ab2521f5.zip
cpython-b8cc6ae5a1e8e548c8c2619e20fb1898ab2521f5.tar.gz
cpython-b8cc6ae5a1e8e548c8c2619e20fb1898ab2521f5.tar.bz2
The usual... Sigh...
Diffstat (limited to 'Lib/dos-8x3/formatte.py')
-rwxr-xr-xLib/dos-8x3/formatte.py5
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,