diff options
Diffstat (limited to 'Modules/clinic/unicodedata.c.h')
-rw-r--r-- | Modules/clinic/unicodedata.c.h | 44 |
1 files changed, 1 insertions, 43 deletions
diff --git a/Modules/clinic/unicodedata.c.h b/Modules/clinic/unicodedata.c.h index 6102027..ec30f90 100644 --- a/Modules/clinic/unicodedata.c.h +++ b/Modules/clinic/unicodedata.c.h @@ -39,9 +39,6 @@ unicodedata_UCD_decimal(PyObject *self, PyObject *const *args, Py_ssize_t nargs) _PyArg_BadArgument("decimal", "argument 1", "a unicode character", args[0]); goto exit; } - if (PyUnicode_READY(args[0])) { - goto exit; - } if (PyUnicode_GET_LENGTH(args[0]) != 1) { _PyArg_BadArgument("decimal", "argument 1", "a unicode character", args[0]); goto exit; @@ -88,9 +85,6 @@ unicodedata_UCD_digit(PyObject *self, PyObject *const *args, Py_ssize_t nargs) _PyArg_BadArgument("digit", "argument 1", "a unicode character", args[0]); goto exit; } - if (PyUnicode_READY(args[0])) { - goto exit; - } if (PyUnicode_GET_LENGTH(args[0]) != 1) { _PyArg_BadArgument("digit", "argument 1", "a unicode character", args[0]); goto exit; @@ -138,9 +132,6 @@ unicodedata_UCD_numeric(PyObject *self, PyObject *const *args, Py_ssize_t nargs) _PyArg_BadArgument("numeric", "argument 1", "a unicode character", args[0]); goto exit; } - if (PyUnicode_READY(args[0])) { - goto exit; - } if (PyUnicode_GET_LENGTH(args[0]) != 1) { _PyArg_BadArgument("numeric", "argument 1", "a unicode character", args[0]); goto exit; @@ -179,9 +170,6 @@ unicodedata_UCD_category(PyObject *self, PyObject *arg) _PyArg_BadArgument("category", "argument", "a unicode character", arg); goto exit; } - if (PyUnicode_READY(arg)) { - goto exit; - } if (PyUnicode_GET_LENGTH(arg) != 1) { _PyArg_BadArgument("category", "argument", "a unicode character", arg); goto exit; @@ -217,9 +205,6 @@ unicodedata_UCD_bidirectional(PyObject *self, PyObject *arg) _PyArg_BadArgument("bidirectional", "argument", "a unicode character", arg); goto exit; } - if (PyUnicode_READY(arg)) { - goto exit; - } if (PyUnicode_GET_LENGTH(arg) != 1) { _PyArg_BadArgument("bidirectional", "argument", "a unicode character", arg); goto exit; @@ -256,9 +241,6 @@ unicodedata_UCD_combining(PyObject *self, PyObject *arg) _PyArg_BadArgument("combining", "argument", "a unicode character", arg); goto exit; } - if (PyUnicode_READY(arg)) { - goto exit; - } if (PyUnicode_GET_LENGTH(arg) != 1) { _PyArg_BadArgument("combining", "argument", "a unicode character", arg); goto exit; @@ -300,9 +282,6 @@ unicodedata_UCD_mirrored(PyObject *self, PyObject *arg) _PyArg_BadArgument("mirrored", "argument", "a unicode character", arg); goto exit; } - if (PyUnicode_READY(arg)) { - goto exit; - } if (PyUnicode_GET_LENGTH(arg) != 1) { _PyArg_BadArgument("mirrored", "argument", "a unicode character", arg); goto exit; @@ -340,9 +319,6 @@ unicodedata_UCD_east_asian_width(PyObject *self, PyObject *arg) _PyArg_BadArgument("east_asian_width", "argument", "a unicode character", arg); goto exit; } - if (PyUnicode_READY(arg)) { - goto exit; - } if (PyUnicode_GET_LENGTH(arg) != 1) { _PyArg_BadArgument("east_asian_width", "argument", "a unicode character", arg); goto exit; @@ -378,9 +354,6 @@ unicodedata_UCD_decomposition(PyObject *self, PyObject *arg) _PyArg_BadArgument("decomposition", "argument", "a unicode character", arg); goto exit; } - if (PyUnicode_READY(arg)) { - goto exit; - } if (PyUnicode_GET_LENGTH(arg) != 1) { _PyArg_BadArgument("decomposition", "argument", "a unicode character", arg); goto exit; @@ -421,17 +394,11 @@ unicodedata_UCD_is_normalized(PyObject *self, PyObject *const *args, Py_ssize_t _PyArg_BadArgument("is_normalized", "argument 1", "str", args[0]); goto exit; } - if (PyUnicode_READY(args[0]) == -1) { - goto exit; - } form = args[0]; if (!PyUnicode_Check(args[1])) { _PyArg_BadArgument("is_normalized", "argument 2", "str", args[1]); goto exit; } - if (PyUnicode_READY(args[1]) == -1) { - goto exit; - } input = args[1]; return_value = unicodedata_UCD_is_normalized_impl(self, form, input); @@ -468,17 +435,11 @@ unicodedata_UCD_normalize(PyObject *self, PyObject *const *args, Py_ssize_t narg _PyArg_BadArgument("normalize", "argument 1", "str", args[0]); goto exit; } - if (PyUnicode_READY(args[0]) == -1) { - goto exit; - } form = args[0]; if (!PyUnicode_Check(args[1])) { _PyArg_BadArgument("normalize", "argument 2", "str", args[1]); goto exit; } - if (PyUnicode_READY(args[1]) == -1) { - goto exit; - } input = args[1]; return_value = unicodedata_UCD_normalize_impl(self, form, input); @@ -515,9 +476,6 @@ unicodedata_UCD_name(PyObject *self, PyObject *const *args, Py_ssize_t nargs) _PyArg_BadArgument("name", "argument 1", "a unicode character", args[0]); goto exit; } - if (PyUnicode_READY(args[0])) { - goto exit; - } if (PyUnicode_GET_LENGTH(args[0]) != 1) { _PyArg_BadArgument("name", "argument 1", "a unicode character", args[0]); goto exit; @@ -565,4 +523,4 @@ unicodedata_UCD_lookup(PyObject *self, PyObject *arg) exit: return return_value; } -/*[clinic end generated code: output=aaf601d28b352353 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=43e551ecaa985a40 input=a9049054013a1b77]*/ |