summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-23 13:33:21 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-23 13:33:21 (GMT)
commite87ed5f6d4ba0d468e1b8620c9b8e785ed1f31a2 (patch)
treec093028daf2f1b416ca04fe1c6c53586d19a04c8
parent41dc72fa1f87b171def8d96aa750c1973009cc36 (diff)
downloadcpython-e87ed5f6d4ba0d468e1b8620c9b8e785ed1f31a2.zip
cpython-e87ed5f6d4ba0d468e1b8620c9b8e785ed1f31a2.tar.gz
cpython-e87ed5f6d4ba0d468e1b8620c9b8e785ed1f31a2.tar.bz2
Add writelines() method to Compare class.
-rwxr-xr-xLib/test/regrtest.py3
1 files changed, 3 insertions, 0 deletions
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