summaryrefslogtreecommitdiffstats
path: root/Lib/formatter.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1996-12-31 20:50:51 (GMT)
committerFred Drake <fdrake@acm.org>1996-12-31 20:50:51 (GMT)
commit2823168c4687d90c369978dedcbb764a91cc96b6 (patch)
tree05ebe8e4910281e5393aaa5bc471d6b67ad2dd90 /Lib/formatter.py
parent2a37850273354ee7f62bd62f3102b8aec307907c (diff)
downloadcpython-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.py4
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