]> granicus.if.org Git - python/commitdiff
(formatter.py): Add a flush() method to the writer interface. This really
authorFred Drake <fdrake@acm.org>
Tue, 31 Dec 1996 20:50:51 +0000 (20:50 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 31 Dec 1996 20:50:51 +0000 (20:50 +0000)
needs to be a standard part of the interface, so we'll have it in
for the next release.

Lib/formatter.py

index 507ed8a6fafae38f4cfd32b5c8016cc2f84e5061..25dbe73d78cb418625f47652be015ad8cbade9c2 100644 (file)
@@ -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