From 99275887955bd34fc301532c47542a89cfc703ca Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 13 Sep 2003 02:59:00 +0000 Subject: [PATCH] SF bug #804115: bad argument handling(unittest.py) --- Lib/unittest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/unittest.py b/Lib/unittest.py index 76b08d6c99f3..d033936d2d0c 100644 --- a/Lib/unittest.py +++ b/Lib/unittest.py @@ -560,8 +560,8 @@ class _WritelnDecorator: def __getattr__(self, attr): return getattr(self.stream,attr) - def writeln(self, *args): - if args: self.write(*args) + def writeln(self, arg=None): + if arg: self.write(arg) self.write('\n') # text-mode streams translate to \r\n if needed -- 2.47.3