From e87ed5f6d4ba0d468e1b8620c9b8e785ed1f31a2 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 23 Apr 1998 13:33:21 +0000 Subject: [PATCH] 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 41e750f8f32..e842e81b72f 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