summaryrefslogtreecommitdiffstats
path: root/Modules/_codecsmodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-01-17 23:15:58 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-01-17 23:15:58 (GMT)
commit43b936d08c51726205123ae1af5c5f8b5d3b6fcb (patch)
tree1c3e3fd7ec72d71f92f1f0480291c5efc7f19eaf /Modules/_codecsmodule.c
parentc0e1671c71dfcf25c8584b06a2e9584a8806a325 (diff)
downloadcpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.zip
cpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.tar.gz
cpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.tar.bz2
Patch #477750: Use METH_ constants in Modules.
Diffstat (limited to 'Modules/_codecsmodule.c')
-rw-r--r--Modules/_codecsmodule.c58
1 files changed, 29 insertions, 29 deletions
diff --git a/Modules/_codecsmodule.c b/Modules/_codecsmodule.c
index 29b0686..0c49f7f 100644
--- a/Modules/_codecsmodule.c
+++ b/Modules/_codecsmodule.c
@@ -667,37 +667,37 @@ mbcs_encode(PyObject *self,
/* --- Module API --------------------------------------------------------- */
static PyMethodDef _codecs_functions[] = {
- {"register", codecregister, 1},
- {"lookup", codeclookup, 1},
+ {"register", codecregister, METH_VARARGS},
+ {"lookup", codeclookup, METH_VARARGS},
#ifdef Py_USING_UNICODE
- {"utf_8_encode", utf_8_encode, 1},
- {"utf_8_decode", utf_8_decode, 1},
- {"utf_7_encode", utf_7_encode, 1},
- {"utf_7_decode", utf_7_decode, 1},
- {"utf_16_encode", utf_16_encode, 1},
- {"utf_16_le_encode", utf_16_le_encode, 1},
- {"utf_16_be_encode", utf_16_be_encode, 1},
- {"utf_16_decode", utf_16_decode, 1},
- {"utf_16_le_decode", utf_16_le_decode, 1},
- {"utf_16_be_decode", utf_16_be_decode, 1},
- {"utf_16_ex_decode", utf_16_ex_decode, 1},
- {"unicode_escape_encode", unicode_escape_encode, 1},
- {"unicode_escape_decode", unicode_escape_decode, 1},
- {"unicode_internal_encode", unicode_internal_encode, 1},
- {"unicode_internal_decode", unicode_internal_decode, 1},
- {"raw_unicode_escape_encode", raw_unicode_escape_encode, 1},
- {"raw_unicode_escape_decode", raw_unicode_escape_decode, 1},
- {"latin_1_encode", latin_1_encode, 1},
- {"latin_1_decode", latin_1_decode, 1},
- {"ascii_encode", ascii_encode, 1},
- {"ascii_decode", ascii_decode, 1},
- {"charmap_encode", charmap_encode, 1},
- {"charmap_decode", charmap_decode, 1},
- {"readbuffer_encode", readbuffer_encode, 1},
- {"charbuffer_encode", charbuffer_encode, 1},
+ {"utf_8_encode", utf_8_encode, METH_VARARGS},
+ {"utf_8_decode", utf_8_decode, METH_VARARGS},
+ {"utf_7_encode", utf_7_encode, METH_VARARGS},
+ {"utf_7_decode", utf_7_decode, METH_VARARGS},
+ {"utf_16_encode", utf_16_encode, METH_VARARGS},
+ {"utf_16_le_encode", utf_16_le_encode, METH_VARARGS},
+ {"utf_16_be_encode", utf_16_be_encode, METH_VARARGS},
+ {"utf_16_decode", utf_16_decode, METH_VARARGS},
+ {"utf_16_le_decode", utf_16_le_decode, METH_VARARGS},
+ {"utf_16_be_decode", utf_16_be_decode, METH_VARARGS},
+ {"utf_16_ex_decode", utf_16_ex_decode, METH_VARARGS},
+ {"unicode_escape_encode", unicode_escape_encode, METH_VARARGS},
+ {"unicode_escape_decode", unicode_escape_decode, METH_VARARGS},
+ {"unicode_internal_encode", unicode_internal_encode, METH_VARARGS},
+ {"unicode_internal_decode", unicode_internal_decode, METH_VARARGS},
+ {"raw_unicode_escape_encode", raw_unicode_escape_encode, METH_VARARGS},
+ {"raw_unicode_escape_decode", raw_unicode_escape_decode, METH_VARARGS},
+ {"latin_1_encode", latin_1_encode, METH_VARARGS},
+ {"latin_1_decode", latin_1_decode, METH_VARARGS},
+ {"ascii_encode", ascii_encode, METH_VARARGS},
+ {"ascii_decode", ascii_decode, METH_VARARGS},
+ {"charmap_encode", charmap_encode, METH_VARARGS},
+ {"charmap_decode", charmap_decode, METH_VARARGS},
+ {"readbuffer_encode", readbuffer_encode, METH_VARARGS},
+ {"charbuffer_encode", charbuffer_encode, METH_VARARGS},
#if defined(MS_WIN32) && defined(HAVE_USABLE_WCHAR_T)
- {"mbcs_encode", mbcs_encode, 1},
- {"mbcs_decode", mbcs_decode, 1},
+ {"mbcs_encode", mbcs_encode, METH_VARARGS},
+ {"mbcs_decode", mbcs_decode, METH_VARARGS},
#endif
#endif /* Py_USING_UNICODE */
{NULL, NULL} /* sentinel */