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

Correct str/bytes mixup in ContainerIO #4192

Closed
wants to merge 1 commit into from
Closed

Correct str/bytes mixup in ContainerIO #4192

wants to merge 1 commit into from

Conversation

jdufresne
Copy link
Contributor

Image data is expected to be read as in bytes mode, not text mode so
ContainerIO should return bytes in all methods. The passed in file
handler is expected to be opened in bytes mode (as TarIO already does).

docs/handbook/tutorial.rst Outdated Show resolved Hide resolved
Image data is expected to be read in bytes mode, not text mode so
ContainerIO should return bytes in all methods. The passed in file
handler is expected to be opened in bytes mode (as TarIO already does).
@radarhere
Copy link
Member

I've created PR #4297 as an alternative - returning bytes if the file object is a bytestring object, and strings if it is not.

@jdufresne
Copy link
Contributor Author

Closing in favor of #4297. I think it makes more sense. Thanks!

@jdufresne jdufresne closed this Jan 18, 2020
@jdufresne jdufresne deleted the container branch December 20, 2020 01:01
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.

None yet

3 participants