SF bug #804115: bad argument handling(unittest.py)
This commit is contained in:
parent
42a61ed277
commit
91dd19db6f
|
@ -560,8 +560,8 @@ class _WritelnDecorator:
|
||||||
def __getattr__(self, attr):
|
def __getattr__(self, attr):
|
||||||
return getattr(self.stream,attr)
|
return getattr(self.stream,attr)
|
||||||
|
|
||||||
def writeln(self, *args):
|
def writeln(self, arg=None):
|
||||||
if args: self.write(*args)
|
if arg: self.write(arg)
|
||||||
self.write('\n') # text-mode streams translate to \r\n if needed
|
self.write('\n') # text-mode streams translate to \r\n if needed
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue