Skip to content
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

Use stdout.buffer for task context's outstream #6968

Conversation

Eric-Arellano
Copy link
Contributor

We decided in #6304 and #6360 that console_task.py should be writing bytes to its self._outstream.

However, in context.py, when using Python 3, we had set the stdout stream to use unicode, leading to an issue when running Pants with Python 3.

We now consistently use byte streams.

@Eric-Arellano Eric-Arellano changed the title Use stdout with bytes for task context Use stdout.buffer for task context's outstream Dec 20, 2018
@Eric-Arellano Eric-Arellano merged commit 5a2dcae into pantsbuild:master Dec 20, 2018
@Eric-Arellano Eric-Arellano deleted the fix-context-console-outstream-bytes branch December 20, 2018 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants