diff options
author | 2017-07-03 21:20:15 +0300 | |
---|---|---|
committer | 2017-07-03 21:20:15 +0300 | |
commit | 6969eaf4682beb01bc95eeb14f5ce6c01312e297 (patch) | |
tree | c81a3d9bca3e9d01f557c46a8534a4e3873403f9 /Modules/clinic/unicodedata.c.h | |
parent | bpo-30832: Remove own implementation for thread-local storage (#2537) (diff) | |
download | cpython-6969eaf4682beb01bc95eeb14f5ce6c01312e297.tar.gz cpython-6969eaf4682beb01bc95eeb14f5ce6c01312e297.tar.bz2 cpython-6969eaf4682beb01bc95eeb14f5ce6c01312e297.zip |
bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955)
the bare METH_FASTCALL be used for functions with positional-only
parameters.
Diffstat (limited to 'Modules/clinic/unicodedata.c.h')
-rw-r--r-- | Modules/clinic/unicodedata.c.h | 32 |
1 files changed, 6 insertions, 26 deletions
diff --git a/Modules/clinic/unicodedata.c.h b/Modules/clinic/unicodedata.c.h index 50b1ee27ac3..52226d64b35 100644 --- a/Modules/clinic/unicodedata.c.h +++ b/Modules/clinic/unicodedata.c.h @@ -20,16 +20,12 @@ unicodedata_UCD_decimal_impl(PyObject *self, int chr, PyObject *default_value); static PyObject * -unicodedata_UCD_decimal(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +unicodedata_UCD_decimal(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int chr; PyObject *default_value = NULL; - if (!_PyArg_NoStackKeywords("decimal", kwnames)) { - goto exit; - } - if (!_PyArg_ParseStack(args, nargs, "C|O:decimal", &chr, &default_value)) { goto exit; @@ -57,16 +53,12 @@ static PyObject * unicodedata_UCD_digit_impl(PyObject *self, int chr, PyObject *default_value); static PyObject * -unicodedata_UCD_digit(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +unicodedata_UCD_digit(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int chr; PyObject *default_value = NULL; - if (!_PyArg_NoStackKeywords("digit", kwnames)) { - goto exit; - } - if (!_PyArg_ParseStack(args, nargs, "C|O:digit", &chr, &default_value)) { goto exit; @@ -95,16 +87,12 @@ unicodedata_UCD_numeric_impl(PyObject *self, int chr, PyObject *default_value); static PyObject * -unicodedata_UCD_numeric(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +unicodedata_UCD_numeric(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int chr; PyObject *default_value = NULL; - if (!_PyArg_NoStackKeywords("numeric", kwnames)) { - goto exit; - } - if (!_PyArg_ParseStack(args, nargs, "C|O:numeric", &chr, &default_value)) { goto exit; @@ -312,16 +300,12 @@ unicodedata_UCD_normalize_impl(PyObject *self, const char *form, PyObject *input); static PyObject * -unicodedata_UCD_normalize(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +unicodedata_UCD_normalize(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; const char *form; PyObject *input; - if (!_PyArg_NoStackKeywords("normalize", kwnames)) { - goto exit; - } - if (!_PyArg_ParseStack(args, nargs, "sU:normalize", &form, &input)) { goto exit; @@ -348,16 +332,12 @@ static PyObject * unicodedata_UCD_name_impl(PyObject *self, int chr, PyObject *default_value); static PyObject * -unicodedata_UCD_name(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +unicodedata_UCD_name(PyObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int chr; PyObject *default_value = NULL; - if (!_PyArg_NoStackKeywords("name", kwnames)) { - goto exit; - } - if (!_PyArg_ParseStack(args, nargs, "C|O:name", &chr, &default_value)) { goto exit; @@ -399,4 +379,4 @@ unicodedata_UCD_lookup(PyObject *self, PyObject *arg) exit: return return_value; } -/*[clinic end generated code: output=f69c0bbd7294870b input=a9049054013a1b77]*/ +/*[clinic end generated code: output=7ec9a3c8fbfd3c3a input=a9049054013a1b77]*/ |