Sitelet https://github.com/python/cpython/issues/94172
Skip to content

Remove deprecated keyfile, certfile and check_hostname parameters, in favor of context #94172

Description

@vstinner

In Python 3.6, the keyfile, certfile and check_hostname parameters were deprecated in ftplib, http.client, imaplib, poplib, and smtplib modules. IMO it's now time to remove them in favor of the context parameters. Most Python projects now require Python 3.6 and newer (if not Python 3.7 or Python 3.8). And it's easy to support older Python versions with some if/else code.

I wrote PR #94173 to remove these parameters.

Activity

  1. vstinner commented on Jun 23, 2022

    @vstinner
    MemberAuthor

    See the old issue #72209 which introduced the deprecation for the rationale of removing these parameters.

  2. added a commit that references this issue on Jun 24, 2022
  3. added a commit that references this issue on Jun 26, 2022
  4. vstinner commented on Jun 26, 2022

    @vstinner
    MemberAuthor

    I made two changes to prepare the main one:

  5. romaricnzoyem commented on Jun 26, 2022

    @romaricnzoyem
  6. added a commit that references this issue on Jun 28, 2022
  7. added a commit that references this issue on Jun 30, 2022
  8. vstinner commented on Nov 3, 2022

    @vstinner
    MemberAuthor

    This issue is part of the larger issue #94199 "ssl and hashlib: Remove functions deprecated in Python 3.10".

  9. added a commit that references this issue on Nov 3, 2022
  10. vstinner commented on Nov 3, 2022

    @vstinner
    MemberAuthor

    Fixed by ef0e72b

  11. added a commit that references this issue on Dec 28, 2022
  12. added 2 commits that reference this issue on Jun 6, 2023
  13. added a commit that references this issue on Jun 6, 2023
  14. added a commit that references this issue on Jun 6, 2023
  15. added a commit that references this issue on Jan 7, 2026
  16. added a commit that references this issue on Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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