-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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-33151: Handle submodule resources #6268
Conversation
try: | ||
return BytesIO(self.zipimporter.get_data(path)) | ||
except OSError: | ||
raise FileNotFoundError | ||
raise FileNotFoundError(path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe use the repr()
to help identify potentially odd things like whitespace issues?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about that, but I wanted the actual path string as the argument to the exception. I guess it's not that big a deal either way.
Thanks @warsaw for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
GH-6270 is a backport of this pull request to the 3.7 branch. |
(cherry picked from commit 30e507d) Co-authored-by: Barry Warsaw <[email protected]>
(cherry picked from commit 30e507d) Co-authored-by: Barry Warsaw <[email protected]>
Submodule resources in zip files was semi-broken. This adds tests and should fix the problem.