Skip to content

Commit

Permalink
Always ensure_unicode for subprocess output (#2941)
Browse files Browse the repository at this point in the history
* Always ensure unicode
  • Loading branch information
nmuesch authored Jan 15, 2019
1 parent 64ffa7a commit 887c0fc
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ def get_subprocess_output(command, log, raise_on_empty_output=True, log_debug=Tr
)
)

if out:
out = ensure_unicode(out)
if err:
err = ensure_unicode(err)
out = ensure_unicode(out) if out is not None else None
err = ensure_unicode(err) if err is not None else None

return out, err, returncode

0 comments on commit 887c0fc

Please sign in to comment.