summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.h
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-12-03 19:59:41 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-12-03 19:59:41 (GMT)
commitc4df7845143f9afe0d20f4421a41904f3cbb991a (patch)
treef41b148eba51ce36c7d45aaa15625cc41d1786b9 /Modules/socketmodule.h
parent500be24a64ff188b8cfcc1ad75d9b556bbf6ce86 (diff)
downloadcpython-c4df7845143f9afe0d20f4421a41904f3cbb991a.zip
cpython-c4df7845143f9afe0d20f4421a41904f3cbb991a.tar.gz
cpython-c4df7845143f9afe0d20f4421a41904f3cbb991a.tar.bz2
Issue #10272: The ssl module now raises socket.timeout instead of a generic
SSLError on socket timeouts.
Diffstat (limited to 'Modules/socketmodule.h')
-rw-r--r--Modules/socketmodule.h1
1 files changed, 1 insertions, 0 deletions
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 {
typedef struct {
PyTypeObject *Sock_Type;
PyObject *error;
+ PyObject *timeout_error;
} PySocketModule_APIObject;
#define PySocketModule_ImportModuleAndAPI() PyCapsule_Import(PySocket_CAPSULE_NAME, 1)