Skip to content

[3.9] bpo-40924: Revert "bpo-39791 native hooks for importlib.resources.files (GH-20576)" - #20760

Merged
ambv merged 3 commits into
python:3.9from
ambv:revert_importlib_resources
Jun 9, 2020
Merged

[3.9] bpo-40924: Revert "bpo-39791 native hooks for importlib.resources.files (GH-20576)"#20760
ambv merged 3 commits into
python:3.9from
ambv:revert_importlib_resources

Conversation

@ambv

@ambv ambv commented Jun 9, 2020

Copy link
Copy Markdown
Contributor

This reverts commit 9cf1be4 due to

https://bugs.python.org/issue40924

The change being reverted broke Certifi and caused root certificates to be unavailable to urllib.

@vstinner

vstinner commented Jun 9, 2020

Copy link
Copy Markdown
Member

This PR looks larger than just a revert. It also upgrade to the beta2. Was it done on purpose?

@ambv

ambv commented Jun 9, 2020

Copy link
Copy Markdown
Contributor Author

No, that's a failed rebase. Fixing right now.

@ambv
ambv force-pushed the revert_importlib_resources branch from 1797ad9 to c791333 Compare June 9, 2020 13:03
@ambv ambv added the skip news label Jun 9, 2020
@vstinner

vstinner commented Jun 9, 2020

Copy link
Copy Markdown
Member

Please add a NEWS entry to mention the revert.

9cf1be4 added Misc/NEWS.d/next/Library/2020-06-02-02-16-02.[bpo-39791](https://bugs.python.org/issue39791).StCJlA.rst which was merged into 3.9.0b2.rst:

Built-in loaders (SourceFileLoader and ZipImporter) now supply ``TraversableResources`` implementations for ``ResourceReader``, and the fallback function has been removed.

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM if you add a NEWS entry.

@vstinner

vstinner commented Jun 9, 2020

Copy link
Copy Markdown
Member

IMHO it's better to document the revert than modifying Misc/NEWS.d/3.9.0b2.rst.

@ambv ambv removed the skip news label Jun 9, 2020

@ned-deily ned-deily left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I did a complete macOS installer build and test install with the PR. The test suite ran without errors and I verified that certifi.where() now returns the correct result. With the addition of a news entry, LGTM.

@ned-deily ned-deily left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Perhaps the entry should specifically mention "introduced in 3.9.0b2"?

@ambv

ambv commented Jun 9, 2020

Copy link
Copy Markdown
Contributor Author

Good idea, Ned.

@ambv
ambv merged commit ce5e6f0 into python:3.9 Jun 9, 2020
@bedevere-bot

Copy link
Copy Markdown

@ambv: Please replace # with GH- in the commit message next time. Thanks!

@ambv
ambv deleted the revert_importlib_resources branch June 9, 2020 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants