Commit f6843aa9 authored by Raymond Hettinger's avatar Raymond Hettinger

SF bug #804115: bad argument handling(unittest.py)

parent 4e81fcbb
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment