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

urllib.request: Remove deprecated cafile, capath and cadefault parameters in Python 3.13 #105382

Closed
vstinner opened this issue Jun 6, 2023 · 0 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@vstinner
Copy link
Member

vstinner commented Jun 6, 2023

In Python 3.12, I removed keyfile and certfile parameters of most stdlib modules in issue #94172, but I forgot to remove cafile and capath of the urllib.request module.

I propose to remove the cafile, capath and cadefault parameters of urllib.request.urlopen() in Python 3.13. These parameters are deprecated since Python 3.6: the context parameter should be used instead. Using cafile and capath is less safe than using the context parameter.

Linked PRs

@vstinner vstinner added the type-bug An unexpected behavior, bug, or error label Jun 6, 2023
vstinner added a commit to vstinner/cpython that referenced this issue Jun 6, 2023
Remove cafile, capath and cadefault parameters of the
urllib.request.urlopen() function, deprecated in Python 3.6.
vstinner added a commit to vstinner/cpython that referenced this issue Jun 6, 2023
Remove cafile, capath and cadefault parameters of the
urllib.request.urlopen() function, deprecated in Python 3.6.
vstinner added a commit to vstinner/cpython that referenced this issue Jun 6, 2023
Remove cafile, capath and cadefault parameters of the
urllib.request.urlopen() function, deprecated in Python 3.6.
vstinner added a commit that referenced this issue Jun 6, 2023
Remove cafile, capath and cadefault parameters of the
urllib.request.urlopen() function, deprecated in Python 3.6.
@vstinner vstinner closed this as completed Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant