mirror of
https://github.com/python/cpython.git
synced 2025-10-06 23:21:06 +00:00
(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.
This commit is contained in:
parent
2a37850273
commit
2823168c46
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue