mirror of https://github.com/python/cpython.git
another style nit
This commit is contained in:
parent
a473f00cac
commit
d0cdb2ddf2
|
@ -809,7 +809,8 @@ def __getattr__(self, attr):
|
||||||
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…
Reference in New Issue