From: Raymond Hettinger Date: Sat, 13 Sep 2003 02:58:00 +0000 (+0000) Subject: SF bug #804115: bad argument handling(unittest.py) X-Git-Tag: v2.4a1~1582 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=91dd19db6fe426c52a30843ab2b5bc8776c8c414;p=python SF bug #804115: bad argument handling(unittest.py) --- diff --git a/Lib/unittest.py b/Lib/unittest.py index 76b08d6c99..d033936d2d 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