Skip to content

Conversation

@jaraco
Copy link
Member

@jaraco jaraco commented Jun 13, 2020

Ensure importlib.resources.path returns an extant path for the SourceFileLoader's resource reader. Avoids the regression identified in bpo-40924 in master while a long-term solution is devised.

https://bugs.python.org/issue40924

@ambv ambv requested a review from warsaw June 14, 2020 12:13


class ZipReader(FileReader):
class ZipReader(abc.TraversableResources):
Copy link
Member

Choose a reason for hiding this comment

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

Is this a safe (as in backward-compatible) change?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. The main reason this was here was to supply FileReader.files, but now it has its own copy.

@ambv ambv merged commit 2fb5f03 into python:master Jun 29, 2020
@jaraco jaraco deleted the bpo-40924/restore-leaky-path branch March 5, 2021 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants