summaryrefslogtreecommitdiff
path: root/Modules/binascii.c
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2000-08-03 02:06:16 +0000
committerAndrew M. Kuchling <amk@amk.ca>2000-08-03 02:06:16 +0000
commite365fb8d1ff062d619f9476265e48e9ba8ab2bf6 (patch)
treecb80331534a82abbadb7d45e9f654c3e97b1b3f5 /Modules/binascii.c
parent14f515844d3eae2818af3f1da7b32c38d8e73078 (diff)
downloadcpython-git-e365fb8d1ff062d619f9476265e48e9ba8ab2bf6.tar.gz
Use METH_VARARGS instead of numeric constant 1 in method def. tables
Diffstat (limited to 'Modules/binascii.c')
-rw-r--r--Modules/binascii.c33
1 files changed, 20 insertions, 13 deletions
diff --git a/Modules/binascii.c b/Modules/binascii.c
index 5c9944ac5e..50f8b76044 100644
--- a/Modules/binascii.c
+++ b/Modules/binascii.c
@@ -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 */
};