mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +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
|
|
@ -389,10 +389,14 @@ PyLocale_getdefaultlocale(PyObject* self, PyObject* args)
|
|||
#endif
|
||||
|
||||
static struct PyMethodDef PyLocale_Methods[] = {
|
||||
{"setlocale", (PyCFunction) PyLocale_setlocale, 1, setlocale__doc__},
|
||||
{"localeconv", (PyCFunction) PyLocale_localeconv, 0, localeconv__doc__},
|
||||
{"strcoll", (PyCFunction) PyLocale_strcoll, 1, strcoll__doc__},
|
||||
{"strxfrm", (PyCFunction) PyLocale_strxfrm, 1, strxfrm__doc__},
|
||||
{"setlocale", (PyCFunction) PyLocale_setlocale,
|
||||
METH_VARARGS, setlocale__doc__},
|
||||
{"localeconv", (PyCFunction) PyLocale_localeconv,
|
||||
0, localeconv__doc__},
|
||||
{"strcoll", (PyCFunction) PyLocale_strcoll,
|
||||
METH_VARARGS, strcoll__doc__},
|
||||
{"strxfrm", (PyCFunction) PyLocale_strxfrm,
|
||||
METH_VARARGS, strxfrm__doc__},
|
||||
#if defined(MS_WIN32) || defined(macintosh)
|
||||
{"_getdefaultlocale", (PyCFunction) PyLocale_getdefaultlocale, 0},
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue