Content-Length: 277618 | pFad | https://github.com/python/cpython/issues/105382

5D urllib.request: Remove deprecated cafile, capath and cadefault parameters in Python 3.13 · Issue #105382 · python/cpython · GitHub
Skip to content

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

@vstinner

Description

@vstinner

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/105382

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy