mirror of
https://github.com/python/cpython
synced 2024-09-18 20:01:39 +00:00
Extend __all__ with the exports list of the _ssl module.
This commit is contained in:
parent
7c3b6347e5
commit
de7cadec54
|
@ -45,6 +45,7 @@
|
|||
|
||||
_have_ssl = False
|
||||
try:
|
||||
import _ssl
|
||||
from _ssl import *
|
||||
_have_ssl = True
|
||||
except ImportError:
|
||||
|
@ -54,7 +55,8 @@
|
|||
|
||||
__all__ = ["getfqdn"]
|
||||
__all__.extend(os._get_exports_list(_socket))
|
||||
# XXX shouldn't there be something similar to the above for _ssl exports?
|
||||
if _have_ssl:
|
||||
__all__.extend(os._get_exports_list(_ssl))
|
||||
|
||||
_realsocket = socket
|
||||
_needwrapper = False
|
||||
|
@ -90,6 +92,7 @@ def ssl(sock, keyfile=None, certfile=None):
|
|||
errorTab[10064] = "The host is down."
|
||||
errorTab[10065] = "The host is unreachable."
|
||||
__all__.append("errorTab")
|
||||
|
||||
del os, sys
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue