It solves #109601, but covers not only TimeoutError, but other OSError subclasses.
With #109714 these changes will be unneeded (except that some calls may be improved to set filename), because errno and strerror will be set automatically. This PR is a demonstration of changes when do it explicitly. #109714 be accepted and we decide to apply these changes to older versions, this PR will be converted in a backport PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jaraco
Awaiting requested review from jaraco
jaraco will be requested when the pull request is marked ready for review
jaraco is a code owner
gpshead
Awaiting requested review from gpshead
gpshead will be requested when the pull request is marked ready for review
gpshead is a code owner
giampaolo
Awaiting requested review from giampaolo
giampaolo will be requested when the pull request is marked ready for review
giampaolo is a code owner
vsajip
Awaiting requested review from vsajip
vsajip will be requested when the pull request is marked ready for review
vsajip is a code owner
warsaw
Awaiting requested review from warsaw
warsaw will be requested when the pull request is marked ready for review
warsaw is a code owner
FFY00
Awaiting requested review from FFY00
FFY00 will be requested when the pull request is marked ready for review
FFY00 is a code owner
picnixz
Awaiting requested review from picnixz
picnixz will be requested when the pull request is marked ready for review
picnixz is a code owner
1st1
Awaiting requested review from 1st1
1st1 will be requested when the pull request is marked ready for review
1st1 is a code owner
asvetlov
Awaiting requested review from asvetlov
asvetlov will be requested when the pull request is marked ready for review
asvetlov is a code owner
kumaraditya303
Awaiting requested review from kumaraditya303
kumaraditya303 will be requested when the pull request is marked ready for review
kumaraditya303 is a code owner
willingc
Awaiting requested review from willingc
willingc will be requested when the pull request is marked ready for review
willingc is a code owner
Assignees
No one assigned
Labels
stale
Stale PR or inactive for long period of time.
Projects
None yet
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It solves #109601, but covers not only TimeoutError, but other OSError subclasses.
With #109714 these changes will be unneeded (except that some calls may be improved to set filename), because errno and strerror will be set automatically. This PR is a demonstration of changes when do it explicitly. #109714 be accepted and we decide to apply these changes to older versions, this PR will be converted in a backport PR.