Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bpo-26730: Fix SpooledTemporaryFile data corruption #17400

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

Merged
merged 7 commits into from
Nov 27, 2019

Conversation

methane
Copy link
Member

@methane methane commented Nov 27, 2019

SpooledTemporaryFile.rollback() might cause data corruption
when it is in text mode.
Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

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

I am not sure about the function to class change. Let to left this to other issue. It needs a separate discussion. It might be discussed earlier.

@methane methane merged commit ea9835c into python:master Nov 27, 2019
@methane methane deleted the text-spooledtempfile branch November 27, 2019 13:22
@miss-islington
Copy link
Contributor

Thanks @methane for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 27, 2019
SpooledTemporaryFile.rollback() might cause data corruption
when it is in text mode.

Co-Authored-By: Serhiy Storchaka <[email protected]>
(cherry picked from commit ea9835c)

Co-authored-by: Inada Naoki <[email protected]>
@bedevere-bot
Copy link

GH-17405 is a backport of this pull request to the 3.8 branch.

@miss-islington
Copy link
Contributor

Sorry, @methane, I could not cleanly backport this to 3.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker ea9835c5d154ab6a54eed627958473b6768b28cc 3.7

methane added a commit that referenced this pull request Nov 27, 2019
SpooledTemporaryFile.rollback() might cause data corruption
when it is in text mode.

Co-Authored-By: Serhiy Storchaka <[email protected]>.
(cherry picked from commit ea9835c)

Co-authored-by: Inada Naoki <[email protected]>
@bedevere-bot
Copy link

GH-17407 is a backport of this pull request to the 3.7 branch.

miss-islington added a commit that referenced this pull request Nov 28, 2019
SpooledTemporaryFile.rollback() might cause data corruption
when it is in text mode.

Co-Authored-By: Serhiy Storchaka <[email protected]>
(cherry picked from commit ea9835c)

Co-authored-by: Inada Naoki <[email protected]>
methane added a commit that referenced this pull request Nov 28, 2019
SpooledTemporaryFile.rollback() might cause data corruption
when it is in text mode.

Co-Authored-By: Serhiy Storchaka <[email protected]>.
(cherry picked from commit ea9835c)
jacobneiltaylor pushed a commit to jacobneiltaylor/cpython that referenced this pull request Dec 5, 2019
SpooledTemporaryFile.rollback() might cause data corruption
when it is in text mode.

Co-Authored-By: Serhiy Storchaka <[email protected]>
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 2020
SpooledTemporaryFile.rollback() might cause data corruption
when it is in text mode.

Co-Authored-By: Serhiy Storchaka <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants