Skip to content

Conversation

@fried
Copy link
Contributor

@fried fried commented Jun 25, 2025

Summary:
Noticed the abandoned codemod and figured I would fix the test.
importlib.resources.path has always returned a context manger, but I guess it was pathlike before so nobody bothered using it. So going back to the introduction of importlib.resources in 3.7 its been a context manager so this is safe.

Differential Revision: D77327183

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 25, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77327183

Summary:

Noticed the abandoned codemod (D77291340) and figured I would fix the test. 
importlib.resources.path has always returned a context manger, but I guess it was pathlike before so nobody bothered using it.   So going back to the introduction of importlib.resources in 3.7 its been a context manager so this is safe.

Differential Revision: D77327183
@fried fried force-pushed the export-D77327183 branch from b9ddf7d to f5ee94a Compare June 26, 2025 18:57
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D77327183

@facebook-github-bot facebook-github-bot merged commit 103f714 into meta-pytorch:main Jun 30, 2025
38 of 41 checks passed
Dan-Flores pushed a commit to Dan-Flores/torchcodec that referenced this pull request Jul 17, 2025
Differential Revision: D77327183

Pull Request resolved: meta-pytorch#744
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants