commit | 91dd19db6fe426c52a30843ab2b5bc8776c8c414 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sat Sep 13 02:58:00 2003 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Sat Sep 13 02:58:00 2003 +0000 |
tree | c6afe12ec344d705589e3bd6e31b203090ca86ba | |
parent | 42a61ed277ee2bfaa19952c470a43d288be11ae6 [diff] [blame] |
SF bug #804115: bad argument handling(unittest.py)
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 @@ 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