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