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

Make saving image to BytesIO/StringIO work. Fix _pg_rw_write #1858

Merged
merged 1 commit into from May 26, 2020

Conversation

dangillet
Copy link
Contributor

@dangillet dangillet commented May 25, 2020

Fix #1714
Calling the helper write function should be done with a Bytes type
instead of a String type.

test/image_test.py Outdated Show resolved Hide resolved
Copy link
Member

@illume illume left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Looks good to me. We can merge it in when the temporary file generation is changed.

@illume illume added the image pygame.image label May 25, 2020
@nthykier nthykier requested a review from illume May 25, 2020 18:29
Copy link
Contributor

@nthykier nthykier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Pinged @illume for a second review (to ensure that I did not over look anything)

test/image_test.py Outdated Show resolved Hide resolved
Calling the helper write function should be done with a Bytes type
instead of a String type for Python 3.
@illume illume merged commit c87180a into pygame:master May 26, 2020
@illume illume changed the title Fix _pg_rw_write Make saving image to BytesIO/StringIO work. Fix _pg_rw_write May 29, 2020
robertpfeiffer pushed a commit to robertpfeiffer/pygame that referenced this pull request Feb 15, 2023
…et-prebuilts

Use prebuilt bundle hosted by us
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
image pygame.image
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Saving image to BytesIO/StringIO doesnt work
3 participants