diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-27 21:56:55 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-27 21:56:55 (GMT) |
commit | 41032a69c12c1d4939daa84c98b2726f00380a9e (patch) | |
tree | 97607f9001b060955a87ff6789b51027f031cbc9 /Lib/ssl.py | |
parent | b5cab85dc79913b6825ecdbbd6b085529ee2dc91 (diff) | |
download | cpython-41032a69c12c1d4939daa84c98b2726f00380a9e.zip cpython-41032a69c12c1d4939daa84c98b2726f00380a9e.tar.gz cpython-41032a69c12c1d4939daa84c98b2726f00380a9e.tar.bz2 |
Issue #11183: Add finer-grained exceptions to the ssl module, so that
you don't have to inspect the exception's attributes in the common case.
Diffstat (limited to 'Lib/ssl.py')
-rw-r--r-- | Lib/ssl.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -60,7 +60,11 @@ import re import _ssl # if we can't import it, let the error propagate from _ssl import OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_INFO, OPENSSL_VERSION -from _ssl import _SSLContext, SSLError +from _ssl import _SSLContext +from _ssl import ( + SSLError, SSLZeroReturnError, SSLWantReadError, SSLWantWriteError, + SSLSyscallError, SSLEOFError, + ) from _ssl import CERT_NONE, CERT_OPTIONAL, CERT_REQUIRED from _ssl import OP_ALL, OP_NO_SSLv2, OP_NO_SSLv3, OP_NO_TLSv1 from _ssl import RAND_status, RAND_egd, RAND_add, RAND_bytes, RAND_pseudo_bytes |