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

bpo-38878: Fix os.PathLike __subclasshook__ #17336

Merged
merged 10 commits into from Dec 22, 2019
Merged

Conversation

@bharel
Copy link
Contributor

bharel commented Nov 22, 2019

Quick subclasshook fix. No need for tests, regression bugs cannot happen and the same method is being used in collections.abc (up to a certain degree).

https://bugs.python.org/issue38878

bharel added 4 commits May 7, 2019
Merge
Copy link
Member

brettcannon left a comment

Please provide tests so that this functionality isn't accidentally removed in the future.

@bedevere-bot

This comment has been minimized.

Copy link

bedevere-bot commented Nov 22, 2019

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@bharel

This comment has been minimized.

Copy link
Contributor Author

bharel commented Nov 22, 2019

I have made the requested changes; please review again

@bedevere-bot

This comment has been minimized.

Copy link

bedevere-bot commented Nov 22, 2019

Thanks for making the requested changes!

@brettcannon: please review the changes made to this pull request.

@bedevere-bot bedevere-bot requested a review from brettcannon Nov 22, 2019
Lib/os.py Show resolved Hide resolved
bharel added 3 commits Nov 25, 2019
@bharel

This comment has been minimized.

Copy link
Contributor Author

bharel commented Nov 25, 2019

Alright, ready for merge.

I have made the requested changes; please review again

@bedevere-bot

This comment has been minimized.

Copy link

bedevere-bot commented Nov 25, 2019

Thanks for making the requested changes!

@brettcannon: please review the changes made to this pull request.

@bharel

This comment has been minimized.

Copy link
Contributor Author

bharel commented Dec 4, 2019

Ready for merge?

@ilevkivskyi

This comment has been minimized.

Copy link
Contributor

ilevkivskyi commented Dec 4, 2019

Ready for merge?

I will get back to this on the weekend.

@brettcannon brettcannon removed their request for review Dec 4, 2019
@bharel bharel requested a review from brettcannon Dec 21, 2019
Copy link
Contributor

ilevkivskyi left a comment

OK, LGTM now.

@ilevkivskyi

This comment has been minimized.

Copy link
Contributor

ilevkivskyi commented Dec 22, 2019

Also since this is technically a bug, I am going to backport this to 3.7 and 3.8.

@ilevkivskyi ilevkivskyi merged commit eae87e3 into python:master Dec 22, 2019
9 checks passed
9 checks passed
Docs
Details
Windows (x86)
Details
Windows (x64)
Details
macOS
Details
Ubuntu
Details
Azure Pipelines PR #20191221.5 succeeded
Details
bedevere/issue-number Issue number 38878 found
Details
bedevere/news News entry found in Misc/NEWS.d
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@miss-islington

This comment has been minimized.

Copy link

miss-islington commented Dec 22, 2019

Thanks @bharel for the PR, and @ilevkivskyi for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8.
🐍🍒🤖

@miss-islington

This comment has been minimized.

Copy link

miss-islington commented Dec 22, 2019

Sorry, @bharel and @ilevkivskyi, I could not cleanly backport this to 3.8 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker eae87e3e4e0cb9a0ce10c2e101acb6995d79e09c 3.8

@miss-islington

This comment has been minimized.

Copy link

miss-islington commented Dec 22, 2019

Sorry @bharel and @ilevkivskyi, I had trouble checking out the 3.7 backport branch.
Please backport using cherry_picker on command line.
cherry_picker eae87e3e4e0cb9a0ce10c2e101acb6995d79e09c 3.7

@ilevkivskyi

This comment has been minimized.

Copy link
Contributor

ilevkivskyi commented Dec 22, 2019

@bharel Oops, there are conflicts, you can however do this manually.

sthagen added a commit to sthagen/cpython that referenced this pull request Dec 22, 2019
bpo-38878: Fix os.PathLike __subclasshook__ (pythonGH-17336)
@bharel bharel deleted the bharel:bpo-38878 branch Dec 23, 2019
bharel added a commit to bharel/cpython that referenced this pull request Dec 23, 2019
Quick subclasshook fix using the same method is being used in collections.abc (up to a certain degree)..
(cherry picked from commit eae87e3)

Co-authored-by: Bar Harel <bzvi7919@gmail.com>
@bedevere-bot

This comment has been minimized.

Copy link

bedevere-bot commented Dec 23, 2019

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

@bedevere-bot

This comment has been minimized.

Copy link

bedevere-bot commented Dec 23, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.