Skip to content

Commit 70ab1aa

Browse files
committed
use splitlines
1 parent 272e042 commit 70ab1aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/utils/filemanip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ def read_stream(stream, logger=None, encoding=None):
615615
except UnicodeDecodeError as err:
616616
out = stream.decode(default_encoding, errors='replace')
617617
logger.warning('Error decoding string: %s', err)
618-
return out.split('\n')
618+
return out.splitlines()
619619

620620

621621
def savepkl(filename, record):

0 commit comments

Comments
 (0)