mirror of https://github.com/python/cpython
Add writelines() method to Compare class.
This commit is contained in:
parent
41dc72fa1f
commit
e87ed5f6d4
|
@ -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…
Reference in New Issue