summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index ecb6f1a..c21d599 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -3358,7 +3358,7 @@ os_init(void)
ret = WSAStartup(0x0101, &WSAData);
switch (ret) {
case 0: /* No error */
- atexit(os_cleanup);
+ Py_AtExit(os_cleanup);
return 1; /* Success */
case WSASYSNOTREADY:
PyErr_SetString(PyExc_ImportError,