mirror of
https://github.com/python/cpython.git
synced 2025-09-18 06:30:38 +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)
|
return getattr(self.stream,attr)
|
||||||
|
|
||||||
def writeln(self, arg=None):
|
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
|
self.write('\n') # text-mode streams translate to \r\n if needed
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue