mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Issue #10272: The ssl module now raises socket.timeout instead of a generic
SSLError on socket timeouts.
This commit is contained in:
parent
500be24a64
commit
c4df784514
5 changed files with 15 additions and 9 deletions
|
|
@ -196,6 +196,7 @@ typedef struct {
|
|||
typedef struct {
|
||||
PyTypeObject *Sock_Type;
|
||||
PyObject *error;
|
||||
PyObject *timeout_error;
|
||||
} PySocketModule_APIObject;
|
||||
|
||||
#define PySocketModule_ImportModuleAndAPI() PyCapsule_Import(PySocket_CAPSULE_NAME, 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue