mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Add writelines() method to Compare class.
This commit is contained in:
parent
41dc72fa1f
commit
e87ed5f6d4
1 changed files with 3 additions and 0 deletions
|
@ -177,6 +177,9 @@ class Compare:
|
|||
raise test_support.TestFailed, \
|
||||
'Writing: '+`data`+', expected: '+`expected`
|
||||
|
||||
def writelines(self, listoflines):
|
||||
map(self.write, listoflines)
|
||||
|
||||
def flush(self):
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue