mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
another style nit
This commit is contained in:
parent
a473f00cac
commit
d0cdb2ddf2
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue