GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove deprecated keyfile, certfile and check_hostname parameters, in favor of context · Issue #94172 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
Closed
Remove deprecated keyfile, certfile and check_hostname parameters, in favor of context#94172
Copy link
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@vstinner
vstinner
opened on Jun 23, 2022
Issue body actions

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.

  • PR: gh-94172: Remove keyfile, certfile and check_hostname parameters #94173
  • PR: gh-94172: Update docs for params removed in 3.12 #100431
  • PR: gh-94172: Update keyfile removal documentation #105392
  • PR: [3.12] gh-94172: Update keyfile removal documentation (GH-105392) #105402
  • PR: gh-94172: delete mention of ssl_version from ftplib doc #143515

Activity

  1. vstinner
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Jun 23, 2022
  2. vstinner commented on Jun 23, 2022

    @vstinner
    vstinner
    on Jun 23, 2022
    MemberAuthor
    More actions

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

  3. vstinner
    added a commit that references this issue on Jun 24, 2022

    gh-94172: urllib.request avoids deprecated check_hostname (#94193)

    f0b234e
  4. serhiy-storchaka
    added a commit that references this issue on Jun 26, 2022

    Revert 30935 defer bpo45162 to 312 (#94285)

    1ffde3e
  5. vstinner
    added a commit that references this issue on Jun 26, 2022

    gh-94172: urllib.request avoids deprecated key_file/cert_file (#94232)

    37118fa
  6. vstinner commented on Jun 26, 2022

    @vstinner
    vstinner
    on Jun 26, 2022
    MemberAuthor
    More actions

    I made two changes to prepare the main one:

    • commit f0b234e
    • commit 37118fa
  7. romaricnzoyem commented on Jun 26, 2022

    @romaricnzoyem
    romaricnzoyem
    on Jun 26, 2022 via email · Hidden as spam
    show commentMore actions
  8. vstinner
    added a commit that references this issue on Jun 28, 2022

    gh-94172: Remove ssl.PROTOCOL_SSLv2 dead code (#94312)

    600c65c
  9. gvanrossum
    added a commit that references this issue on Jun 30, 2022

    pythongh-94172: Remove ssl.PROTOCOL_SSLv2 dead code (python#94312)

    8e1bce0
  10. vstinner commented on Nov 3, 2022

    @vstinner
    vstinner
    on Nov 3, 2022
    MemberAuthor
    More actions

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

  11. vstinner
    added a commit that references this issue on Nov 3, 2022

    gh-94172: Remove keyfile, certfile and check_hostname parameters (#94173

    ef0e72b
  12. vstinner commented on Nov 3, 2022

    @vstinner
    vstinner
    on Nov 3, 2022
    MemberAuthor
    More actions

    Fixed by ef0e72b

  13. vstinner
    closed this as completedon Nov 3, 2022
  14. hauntsaninja
    added a commit that references this issue on Dec 28, 2022

    gh-94172: Update docs for params removed in 3.12 (#100431)

    9eca723
  15. vstinner
    added 2 commits that reference this issue on Jun 6, 2023

    pythongh-94172: Update keyfile removal documentation

    ffe6970

    gh-94172: Update keyfile removal documentation (#105392)

    2b8e6e5
  16. miss-islington
    added a commit that references this issue on Jun 6, 2023

    pythongh-94172: Update keyfile removal documentation (pythonGH-105392)

    340abdb
  17. vstinner
    added a commit that references this issue on Jun 6, 2023

    [3.12] gh-94172: Update keyfile removal documentation (GH-105392) (#1…

    bf62e06
  18. giampaolo
    added a commit that references this issue on Jan 7, 2026

    gh-94172: delete mention of ssl_version from ftplib doc (#143515)

    a1eedae
  19. thunder-coding
    added a commit that references this issue on Feb 15, 2026

    pythongh-94172: delete mention of ssl_version from ftplib doc (python…

    16cef25
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 errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.