-
Notifications
You must be signed in to change notification settings - Fork 532
Replace chars when standard out can't be decoded #2238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Tests are passing, should we go ahead? |
@oesteban - could we do a |
Codecov Report
@@ Coverage Diff @@
## master #2238 +/- ##
=========================================
Coverage ? 72.32%
=========================================
Files ? 1182
Lines ? 58955
Branches ? 8486
=========================================
Hits ? 42639
Misses ? 14932
Partials ? 1384
Continue to review full report at Codecov.
|
@satra WDYT? |
nipype/utils/filemanip.py
Outdated
except UnicodeDecodeError as err: | ||
out = stream.decode(default_encoding, errors='replace') | ||
logger.warning('Error decoding string: %s', err) | ||
return out.split('\n') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out.splitlines()
is robust to '\n'
vs '\r'
vs '\r\n'
, if that's a possible issue.
This looks fine to me, but I'll leave the decision to @satra. |
Let's merge in 2h 30m when tests pass with @effigies suggestion :) |
I think we can be pretty confident it will build successfully, so might as well build on master, rather than here and then on master. IMHO. |
Let's do it |
Fixes #2235