summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-09-13 02:58:00 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-09-13 02:58:00 (GMT)
commit91dd19db6fe426c52a30843ab2b5bc8776c8c414 (patch)
treec6afe12ec344d705589e3bd6e31b203090ca86ba /Lib
parent42a61ed277ee2bfaa19952c470a43d288be11ae6 (diff)
downloadcpython-91dd19db6fe426c52a30843ab2b5bc8776c8c414.zip
cpython-91dd19db6fe426c52a30843ab2b5bc8776c8c414.tar.gz
cpython-91dd19db6fe426c52a30843ab2b5bc8776c8c414.tar.bz2
SF bug #804115: bad argument handling(unittest.py)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/unittest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/unittest.py b/Lib/unittest.py
index 76b08d6..d033936 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