Skip to content

imaplib.pyi: Add ssl_context parameter for Python >= 3.3 - #3310

Merged
srittau merged 3 commits into
python:masterfrom
utkarsh2102:ssl_context
Oct 6, 2019
Merged

srittau merged 3 commits into
python:masterfrom
utkarsh2102:ssl_context

Conversation

@utkarsh2102

Copy link
Copy Markdown
Contributor

Python 3.3 onward, ssl_context was added; documented here.

Fixes: #3289 (the second part of the issue!)

Comment thread stdlib/2and3/imaplib.pyi Resolved
Comment thread stdlib/2and3/imaplib.pyi Resolved
@utkarsh2102
utkarsh2102 force-pushed the ssl_context branch 2 times, most recently from 577a331 to a784083 Compare October 6, 2019 12:11
@utkarsh2102

utkarsh2102 commented Oct 6, 2019 •

Copy link
Copy Markdown
Contributor Author

Hey @srittau,
How do I go on solving: Name 'ssl' is not defined?

The fix should be simple; feels like I am missing something obvious :/

@srittau

srittau commented Oct 6, 2019

Copy link
Copy Markdown
Collaborator

Just use SSLContext. No need to prefix it with ssl.

@srittau
srittau merged commit 717cd1f into python:master Oct 6, 2019
@utkarsh2102
utkarsh2102 deleted the ssl_context branch October 9, 2019 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

errors in imaplib.pyi

2 participants