mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Use METH_VARARGS instead of numeric constant 1 in method def. tables
This commit is contained in:
parent
14f515844d
commit
e365fb8d1f
12 changed files with 178 additions and 107 deletions
|
@ -877,20 +877,27 @@ binascii_crc32(PyObject *self, PyObject *args)
|
|||
/* List of functions defined in the module */
|
||||
|
||||
static struct PyMethodDef binascii_module_methods[] = {
|
||||
{"a2b_uu", binascii_a2b_uu, 1, doc_a2b_uu},
|
||||
{"b2a_uu", binascii_b2a_uu, 1, doc_b2a_uu},
|
||||
{"a2b_base64", binascii_a2b_base64, 1,
|
||||
{"a2b_uu", binascii_a2b_uu,
|
||||
METH_VARARGS, doc_a2b_uu},
|
||||
{"b2a_uu", binascii_b2a_uu,
|
||||
METH_VARARGS, doc_b2a_uu},
|
||||
{"a2b_base64", binascii_a2b_base64,
|
||||
METH_VARARGS,
|
||||
doc_a2b_base64},
|
||||
{"b2a_base64", binascii_b2a_base64, 1,
|
||||
doc_b2a_base64},
|
||||
{"a2b_hqx", binascii_a2b_hqx, 1, doc_a2b_hqx},
|
||||
{"b2a_hqx", binascii_b2a_hqx, 1, doc_b2a_hqx},
|
||||
{"rlecode_hqx", binascii_rlecode_hqx, 1,
|
||||
doc_rlecode_hqx},
|
||||
{"rledecode_hqx", binascii_rledecode_hqx, 1,
|
||||
doc_rledecode_hqx},
|
||||
{"crc_hqx", binascii_crc_hqx, 1, doc_crc_hqx},
|
||||
{"crc32", binascii_crc32, 1, doc_crc32},
|
||||
{"b2a_base64", binascii_b2a_base64,
|
||||
METH_VARARGS, doc_b2a_base64},
|
||||
{"a2b_hqx", binascii_a2b_hqx,
|
||||
METH_VARARGS, doc_a2b_hqx},
|
||||
{"b2a_hqx", binascii_b2a_hqx,
|
||||
METH_VARARGS, doc_b2a_hqx},
|
||||
{"rlecode_hqx", binascii_rlecode_hqx,
|
||||
METH_VARARGS, doc_rlecode_hqx},
|
||||
{"rledecode_hqx", binascii_rledecode_hqx,
|
||||
METH_VARARGS, doc_rledecode_hqx},
|
||||
{"crc_hqx", binascii_crc_hqx,
|
||||
METH_VARARGS, doc_crc_hqx},
|
||||
{"crc32", binascii_crc32,
|
||||
METH_VARARGS, doc_crc32},
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue