another style nit

This commit is contained in:
Benjamin Peterson 2009-03-24 23:07:07 +00:00
parent a473f00cac
commit d0cdb2ddf2
1 changed files with 2 additions and 1 deletions

View File

@ -809,7 +809,8 @@ class _WritelnDecorator(object):
return getattr(self.stream,attr)
def writeln(self, arg=None):
if arg: self.write(arg)
if arg:
self.write(arg)
self.write('\n') # text-mode streams translate to \r\n if needed