diff options
author | mstenner <mstenner> | 2004-03-31 01:27:24 +0000 |
---|---|---|
committer | mstenner <mstenner> | 2004-03-31 01:27:24 +0000 |
commit | 52526508b14931b432d2596860339a7bbd7a8507 (patch) | |
tree | 4e8b8b17602c7ca2e3cccc7a61fb81623fc0fd9a /test/munittest.py | |
parent | 7ac3e07b434406b4e29937b20f501f1f1a680250 (diff) | |
download | urlgrabber-52526508b14931b432d2596860339a7bbd7a8507.tar.gz |
Fixed a few bugs related to python 2.3.
Diffstat (limited to 'test/munittest.py')
-rw-r--r-- | test/munittest.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/munittest.py b/test/munittest.py index e14a00b..96230b8 100644 --- a/test/munittest.py +++ b/test/munittest.py @@ -98,7 +98,7 @@ AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. """ -# $Id: munittest.py,v 1.1 2004/03/18 18:38:20 mstenner Exp $ +# $Id: munittest.py,v 1.2 2004/03/31 01:27:24 mstenner Exp $ import time import sys @@ -699,6 +699,10 @@ class _WritelnDecorator: def __getattr__(self, attr): return getattr(self.stream,attr) + def write(self, arg): + self.stream.write(arg) + self.stream.flush() + def writeln(self, arg=None): if arg: self.write(arg) self.write('\n') # text-mode streams translate to \r\n if needed |