commit | c4df7845143f9afe0d20f4421a41904f3cbb991a | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Fri Dec 03 19:59:41 2010 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Fri Dec 03 19:59:41 2010 +0000 |
tree | f41b148eba51ce36c7d45aaa15625cc41d1786b9 | |
parent | 500be24a64ff188b8cfcc1ad75d9b556bbf6ce86 [diff] [blame] |
Issue #10272: The ssl module now raises socket.timeout instead of a generic SSLError on socket timeouts.
diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h index 4f426f5..f064795 100644 --- a/Modules/socketmodule.h +++ b/Modules/socketmodule.h
@@ -196,6 +196,7 @@ typedef struct { PyTypeObject *Sock_Type; PyObject *error; + PyObject *timeout_error; } PySocketModule_APIObject; #define PySocketModule_ImportModuleAndAPI() PyCapsule_Import(PySocket_CAPSULE_NAME, 1)