diff options
author | Guido van Rossum <guido@python.org> | 1998-04-23 13:33:21 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-04-23 13:33:21 (GMT) |
commit | e87ed5f6d4ba0d468e1b8620c9b8e785ed1f31a2 (patch) | |
tree | c093028daf2f1b416ca04fe1c6c53586d19a04c8 /Lib/test | |
parent | 41dc72fa1f87b171def8d96aa750c1973009cc36 (diff) | |
download | cpython-e87ed5f6d4ba0d468e1b8620c9b8e785ed1f31a2.zip cpython-e87ed5f6d4ba0d468e1b8620c9b8e785ed1f31a2.tar.gz cpython-e87ed5f6d4ba0d468e1b8620c9b8e785ed1f31a2.tar.bz2 |
Add writelines() method to Compare class.
Diffstat (limited to 'Lib/test')
-rwxr-xr-x | Lib/test/regrtest.py | 3 |
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 |