From: Guido van Rossum Date: Thu, 23 Apr 1998 13:33:21 +0000 (+0000) Subject: Add writelines() method to Compare class. X-Git-Tag: v1.5.2a1~856 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e87ed5f6d4ba0d468e1b8620c9b8e785ed1f31a2;p=thirdparty%2FPython%2Fcpython.git Add writelines() method to Compare class. --- diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 41e750f8f322..e842e81b72fe 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