Auto merge of #2569 - micbou:server-stderr-unicode, r=Valloric
[READY] Convert stderr from server to unicode On Python 3, reading stderr from server returns bytes. We need to convert it to unicode for `splitlines()`. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/2569) <!-- Reviewable:end -->
This commit is contained in:
commit
e107855edd
@ -242,7 +242,8 @@ class YouCompleteMe( object ):
|
||||
else:
|
||||
error_message = EXIT_CODE_UNEXPECTED_MESSAGE.format( code = return_code )
|
||||
|
||||
server_stderr = '\n'.join( self._server_popen.stderr.read().splitlines() )
|
||||
server_stderr = '\n'.join(
|
||||
utils.ToUnicode( self._server_popen.stderr.read() ).splitlines() )
|
||||
if server_stderr:
|
||||
self._logger.error( server_stderr )
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user