diff options
author | Fred Drake <fdrake@acm.org> | 1996-12-31 20:50:51 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1996-12-31 20:50:51 (GMT) |
commit | 2823168c4687d90c369978dedcbb764a91cc96b6 (patch) | |
tree | 05ebe8e4910281e5393aaa5bc471d6b67ad2dd90 /Lib/formatter.py | |
parent | 2a37850273354ee7f62bd62f3102b8aec307907c (diff) | |
download | cpython-2823168c4687d90c369978dedcbb764a91cc96b6.zip cpython-2823168c4687d90c369978dedcbb764a91cc96b6.tar.gz cpython-2823168c4687d90c369978dedcbb764a91cc96b6.tar.bz2 |
(formatter.py): Add a flush() method to the writer interface. This really
needs to be a standard part of the interface, so we'll have it in
for the next release.
Diffstat (limited to 'Lib/formatter.py')
-rw-r--r-- | Lib/formatter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/formatter.py b/Lib/formatter.py index 507ed8a..25dbe73 100644 --- a/Lib/formatter.py +++ b/Lib/formatter.py @@ -265,9 +265,9 @@ class AbstractFormatter: class NullWriter: - """Minimal writer interface to use in testing. - """ + """Minimal writer interface to use in testing & inheritance.""" def __init__(self): pass + def flush(self): pass def new_alignment(self, align): pass def new_font(self, font): pass def new_margin(self, margin, level): pass |