Commit 2823168c authored by Fred Drake's avatar Fred Drake

(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.
parent 2a378502
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment