Patch #477750: Use METH_ constants in Modules.
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 25912a4..031d60f 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -2863,9 +2863,9 @@
Read up to len bytes from the SSL socket.";
static PyMethodDef PySSLMethods[] = {
- {"write", (PyCFunction)PySSL_SSLwrite, 1,
+ {"write", (PyCFunction)PySSL_SSLwrite, METH_VARARGS,
PySSL_SSLwrite_doc},
- {"read", (PyCFunction)PySSL_SSLread, 1,
+ {"read", (PyCFunction)PySSL_SSLread, METH_VARARGS,
PySSL_SSLread_doc},
{"server", (PyCFunction)PySSL_server, METH_NOARGS},
{"issuer", (PyCFunction)PySSL_issuer, METH_NOARGS},