From e87ed5f6d4ba0d468e1b8620c9b8e785ed1f31a2 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 23 Apr 1998 13:33:21 +0000 Subject: Add writelines() method to Compare class. --- Lib/test/regrtest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 41e750f..e842e81 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -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 -- cgit v0.12