Add writelines() method to Compare class.

This commit is contained in:
Guido van Rossum 1998-04-23 13:33:21 +00:00
parent 41dc72fa1f
commit e87ed5f6d4
1 changed files with 3 additions and 0 deletions

View File

@ -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