diff options
author | Raymond Hettinger <python@rcn.com> | 2003-09-13 02:58:00 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-09-13 02:58:00 (GMT) |
commit | 91dd19db6fe426c52a30843ab2b5bc8776c8c414 (patch) | |
tree | c6afe12ec344d705589e3bd6e31b203090ca86ba | |
parent | 42a61ed277ee2bfaa19952c470a43d288be11ae6 (diff) | |
download | cpython-91dd19db6fe426c52a30843ab2b5bc8776c8c414.zip cpython-91dd19db6fe426c52a30843ab2b5bc8776c8c414.tar.gz cpython-91dd19db6fe426c52a30843ab2b5bc8776c8c414.tar.bz2 |
SF bug #804115: bad argument handling(unittest.py)
-rw-r--r-- | Lib/unittest.py | 4 |
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 |