mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Don't lie in __all__ attributes when SSL is not available: only add the SSL
classes when they are actually created.
This commit is contained in:
parent
dcb3c382ac
commit
a6900e8d72
4 changed files with 9 additions and 4 deletions
|
|
@ -24,7 +24,7 @@ __version__ = "2.58"
|
|||
|
||||
import binascii, os, random, re, socket, sys, time
|
||||
|
||||
__all__ = ["IMAP4", "IMAP4_SSL", "IMAP4_stream", "Internaldate2tuple",
|
||||
__all__ = ["IMAP4", "IMAP4_stream", "Internaldate2tuple",
|
||||
"Int2AP", "ParseFlags", "Time2Internaldate"]
|
||||
|
||||
# Globals
|
||||
|
|
@ -1205,6 +1205,7 @@ else:
|
|||
"""
|
||||
return self.sslobj
|
||||
|
||||
__all__.append("IMAP4_SSL")
|
||||
|
||||
|
||||
class IMAP4_stream(IMAP4):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue