_PyArg_BadArgument("test_unicode_converter", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
a = arg;
return_value = test_unicode_converter_impl(module, a);
static PyObject *
test_unicode_converter_impl(PyObject *module, PyObject *a)
-/*[clinic end generated code: output=18f1e3880c862611 input=aa33612df92aa9c5]*/
+/*[clinic end generated code: output=8c1625cc272c1f3d input=aa33612df92aa9c5]*/
/*[clinic input]
_PyArg_BadArgument("test_int_converter", "argument 3", "a unicode character", args[2]);
goto exit;
}
- if (PyUnicode_READY(args[2])) {
- goto exit;
- }
if (PyUnicode_GET_LENGTH(args[2]) != 1) {
_PyArg_BadArgument("test_int_converter", "argument 3", "a unicode character", args[2]);
goto exit;
static PyObject *
test_int_converter_impl(PyObject *module, int a, int b, int c, myenum d)
-/*[clinic end generated code: output=800993036e078c07 input=d20541fc1ca0553e]*/
+/*[clinic end generated code: output=375eedba5ca9a5b3 input=d20541fc1ca0553e]*/
/*[clinic input]
_PyArg_BadArgument("open_code", "argument 'path'", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
path = args[0];
return_value = _io_open_code_impl(module, path);
exit:
return return_value;
}
-/*[clinic end generated code: output=f387eba3f4c0254a input=a9049054013a1b77]*/
+/*[clinic end generated code: output=6800c35366b1a5f3 input=a9049054013a1b77]*/
_PyArg_BadArgument("write", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
text = arg;
return_value = _io_TextIOWrapper_write_impl(self, text);
{
return _io_TextIOWrapper_close_impl(self);
}
-/*[clinic end generated code: output=42f592331302973f input=a9049054013a1b77]*/
+/*[clinic end generated code: output=e1060638b65e8a63 input=a9049054013a1b77]*/
_PyArg_BadArgument("shm_open", "argument 'path'", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
path = args[0];
flags = _PyLong_AsInt(args[1]);
if (flags == -1 && PyErr_Occurred()) {
_PyArg_BadArgument("shm_unlink", "argument 'path'", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
path = args[0];
return_value = _posixshmem_shm_unlink_impl(module, path);
#ifndef _POSIXSHMEM_SHM_UNLINK_METHODDEF
#define _POSIXSHMEM_SHM_UNLINK_METHODDEF
#endif /* !defined(_POSIXSHMEM_SHM_UNLINK_METHODDEF) */
-/*[clinic end generated code: output=3f6fee283d5fd0e9 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=9b67f98885757bc4 input=a9049054013a1b77]*/
_PyArg_BadArgument("execute", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
sql = args[0];
if (nargs < 2) {
goto skip_optional;
_PyArg_BadArgument("executemany", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
sql = args[0];
parameters = args[1];
return_value = pysqlite_connection_executemany_impl(self, sql, parameters);
#ifndef DESERIALIZE_METHODDEF
#define DESERIALIZE_METHODDEF
#endif /* !defined(DESERIALIZE_METHODDEF) */
-/*[clinic end generated code: output=834a99827555bf1a input=a9049054013a1b77]*/
+/*[clinic end generated code: output=d3c6cb9326736ea5 input=a9049054013a1b77]*/
_PyArg_BadArgument("execute", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
sql = args[0];
if (nargs < 2) {
goto skip_optional;
_PyArg_BadArgument("executemany", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
sql = args[0];
seq_of_parameters = args[1];
return_value = pysqlite_cursor_executemany_impl(self, sql, seq_of_parameters);
{
return pysqlite_cursor_close_impl(self);
}
-/*[clinic end generated code: output=1f82e3c9791bb9a5 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=831f7bc5256526d3 input=a9049054013a1b77]*/
_PyArg_BadArgument("register_converter", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
orig_name = args[0];
callable = args[1];
return_value = pysqlite_register_converter_impl(module, orig_name, callable);
exit:
return return_value;
}
-/*[clinic end generated code: output=39d38c6cfc455042 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=e08e6856ae546e7b input=a9049054013a1b77]*/
_PyArg_BadArgument("utf_7_encode", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
str = args[0];
if (nargs < 2) {
goto skip_optional;
_PyArg_BadArgument("utf_8_encode", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
str = args[0];
if (nargs < 2) {
goto skip_optional;
_PyArg_BadArgument("utf_16_encode", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
str = args[0];
if (nargs < 2) {
goto skip_optional;
_PyArg_BadArgument("utf_16_le_encode", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
str = args[0];
if (nargs < 2) {
goto skip_optional;
_PyArg_BadArgument("utf_16_be_encode", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
str = args[0];
if (nargs < 2) {
goto skip_optional;
_PyArg_BadArgument("utf_32_encode", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
str = args[0];
if (nargs < 2) {
goto skip_optional;
_PyArg_BadArgument("utf_32_le_encode", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
str = args[0];
if (nargs < 2) {
goto skip_optional;
_PyArg_BadArgument("utf_32_be_encode", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
str = args[0];
if (nargs < 2) {
goto skip_optional;
_PyArg_BadArgument("unicode_escape_encode", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
str = args[0];
if (nargs < 2) {
goto skip_optional;
_PyArg_BadArgument("raw_unicode_escape_encode", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
str = args[0];
if (nargs < 2) {
goto skip_optional;
_PyArg_BadArgument("latin_1_encode", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
str = args[0];
if (nargs < 2) {
goto skip_optional;
_PyArg_BadArgument("ascii_encode", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
str = args[0];
if (nargs < 2) {
goto skip_optional;
_PyArg_BadArgument("charmap_encode", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
str = args[0];
if (nargs < 2) {
goto skip_optional;
_PyArg_BadArgument("charmap_build", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
map = arg;
return_value = _codecs_charmap_build_impl(module, map);
_PyArg_BadArgument("mbcs_encode", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
str = args[0];
if (nargs < 2) {
goto skip_optional;
_PyArg_BadArgument("oem_encode", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
str = args[0];
if (nargs < 2) {
goto skip_optional;
_PyArg_BadArgument("code_page_encode", "argument 2", "str", args[1]);
goto exit;
}
- if (PyUnicode_READY(args[1]) == -1) {
- goto exit;
- }
str = args[1];
if (nargs < 3) {
goto skip_optional;
#ifndef _CODECS_CODE_PAGE_ENCODE_METHODDEF
#define _CODECS_CODE_PAGE_ENCODE_METHODDEF
#endif /* !defined(_CODECS_CODE_PAGE_ENCODE_METHODDEF) */
-/*[clinic end generated code: output=603da07cf8dfeb4b input=a9049054013a1b77]*/
+/*[clinic end generated code: output=0f52053d31533376 input=a9049054013a1b77]*/
_PyArg_BadArgument("strcoll", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
os1 = args[0];
if (!PyUnicode_Check(args[1])) {
_PyArg_BadArgument("strcoll", "argument 2", "str", args[1]);
goto exit;
}
- if (PyUnicode_READY(args[1]) == -1) {
- goto exit;
- }
os2 = args[1];
return_value = _locale_strcoll_impl(module, os1, os2);
_PyArg_BadArgument("strxfrm", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
str = arg;
return_value = _locale_strxfrm_impl(module, str);
#ifndef _LOCALE_BIND_TEXTDOMAIN_CODESET_METHODDEF
#define _LOCALE_BIND_TEXTDOMAIN_CODESET_METHODDEF
#endif /* !defined(_LOCALE_BIND_TEXTDOMAIN_CODESET_METHODDEF) */
-/*[clinic end generated code: output=406842c3441559cb input=a9049054013a1b77]*/
+/*[clinic end generated code: output=9dbd0b4bf5767edd input=a9049054013a1b77]*/
_PyArg_BadArgument("unicode_converter", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
a = arg;
return_value = unicode_converter_impl(module, a);
_PyArg_BadArgument("int_converter", "argument 3", "a unicode character", args[2]);
goto exit;
}
- if (PyUnicode_READY(args[2])) {
- goto exit;
- }
if (PyUnicode_GET_LENGTH(args[2]) != 1) {
_PyArg_BadArgument("int_converter", "argument 3", "a unicode character", args[2]);
goto exit;
exit:
return return_value;
}
-/*[clinic end generated code: output=f58202a6e5df2d16 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=0de394419fefe7cf input=a9049054013a1b77]*/
_PyArg_BadArgument("fromunicode", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
ustr = arg;
return_value = array_array_fromunicode_impl(self, ustr);
_PyArg_BadArgument("_array_reconstructor", "argument 2", "a unicode character", args[1]);
goto exit;
}
- if (PyUnicode_READY(args[1])) {
- goto exit;
- }
if (PyUnicode_GET_LENGTH(args[1]) != 1) {
_PyArg_BadArgument("_array_reconstructor", "argument 2", "a unicode character", args[1]);
goto exit;
#define ARRAY_ARRAYITERATOR___SETSTATE___METHODDEF \
{"__setstate__", (PyCFunction)array_arrayiterator___setstate__, METH_O, array_arrayiterator___setstate____doc__},
-/*[clinic end generated code: output=69bc1451f7bda234 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=11595e9f38d6d500 input=a9049054013a1b77]*/
_PyArg_BadArgument("getgrnam", "argument 'name'", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
name = args[0];
return_value = grp_getgrnam_impl(module, name);
{
return grp_getgrall_impl(module);
}
-/*[clinic end generated code: output=0916fdbcdeaf5d7d input=a9049054013a1b77]*/
+/*[clinic end generated code: output=e685227ed5d9be9f input=a9049054013a1b77]*/
_PyArg_BadArgument("putenv", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
name = args[0];
if (!PyUnicode_Check(args[1])) {
_PyArg_BadArgument("putenv", "argument 2", "str", args[1]);
goto exit;
}
- if (PyUnicode_READY(args[1]) == -1) {
- goto exit;
- }
value = args[1];
return_value = os_putenv_impl(module, name, value);
_PyArg_BadArgument("unsetenv", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
name = arg;
return_value = os_unsetenv_impl(module, name);
#ifndef OS_WAITSTATUS_TO_EXITCODE_METHODDEF
#define OS_WAITSTATUS_TO_EXITCODE_METHODDEF
#endif /* !defined(OS_WAITSTATUS_TO_EXITCODE_METHODDEF) */
-/*[clinic end generated code: output=02bece83d20d497b input=a9049054013a1b77]*/
+/*[clinic end generated code: output=a7e8c3df2db09717 input=a9049054013a1b77]*/
_PyArg_BadArgument("getpwnam", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
name = arg;
return_value = pwd_getpwnam_impl(module, name);
#ifndef PWD_GETPWALL_METHODDEF
#define PWD_GETPWALL_METHODDEF
#endif /* !defined(PWD_GETPWALL_METHODDEF) */
-/*[clinic end generated code: output=a95bc08653cda56b input=a9049054013a1b77]*/
+/*[clinic end generated code: output=1edf1e26cd2762db input=a9049054013a1b77]*/
_PyArg_BadArgument("replace_history_item", "argument 2", "str", args[1]);
goto exit;
}
- if (PyUnicode_READY(args[1]) == -1) {
- goto exit;
- }
line = args[1];
return_value = readline_replace_history_item_impl(module, entry_number, line);
#ifndef READLINE_CLEAR_HISTORY_METHODDEF
#define READLINE_CLEAR_HISTORY_METHODDEF
#endif /* !defined(READLINE_CLEAR_HISTORY_METHODDEF) */
-/*[clinic end generated code: output=9097fcb749c19e27 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=d66c3df7e72f93c4 input=a9049054013a1b77]*/
_PyArg_BadArgument("openlog", "argument 'ident'", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
ident = args[0];
if (!--noptargs) {
goto skip_optional_pos;
exit:
return return_value;
}
-/*[clinic end generated code: output=3b1bdb16565b8fda input=a9049054013a1b77]*/
+/*[clinic end generated code: output=b8124c0977ed6177 input=a9049054013a1b77]*/
_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;
_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;
_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;
_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;
_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;
_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;
_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;
_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;
_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;
_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);
_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);
_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;
exit:
return return_value;
}
-/*[clinic end generated code: output=aaf601d28b352353 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=43e551ecaa985a40 input=a9049054013a1b77]*/
_PyArg_BadArgument("fromhex", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
string = arg;
return_value = bytearray_fromhex_impl(type, string);
{
return bytearray_sizeof_impl(self);
}
-/*[clinic end generated code: output=022698e8b0faa272 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=99fb3e3b9c1f4b15 input=a9049054013a1b77]*/
_PyArg_BadArgument("fromhex", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
string = arg;
return_value = bytes_fromhex_impl(type, string);
exit:
return return_value;
}
-/*[clinic end generated code: output=31a9e4af85562612 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=7b6e4e8b5bc4eb57 input=a9049054013a1b77]*/
_PyArg_BadArgument("code", "argument 11", "str", PyTuple_GET_ITEM(args, 10));
goto exit;
}
- if (PyUnicode_READY(PyTuple_GET_ITEM(args, 10)) == -1) {
- goto exit;
- }
filename = PyTuple_GET_ITEM(args, 10);
if (!PyUnicode_Check(PyTuple_GET_ITEM(args, 11))) {
_PyArg_BadArgument("code", "argument 12", "str", PyTuple_GET_ITEM(args, 11));
goto exit;
}
- if (PyUnicode_READY(PyTuple_GET_ITEM(args, 11)) == -1) {
- goto exit;
- }
name = PyTuple_GET_ITEM(args, 11);
if (!PyUnicode_Check(PyTuple_GET_ITEM(args, 12))) {
_PyArg_BadArgument("code", "argument 13", "str", PyTuple_GET_ITEM(args, 12));
goto exit;
}
- if (PyUnicode_READY(PyTuple_GET_ITEM(args, 12)) == -1) {
- goto exit;
- }
qualname = PyTuple_GET_ITEM(args, 12);
firstlineno = _PyLong_AsInt(PyTuple_GET_ITEM(args, 13));
if (firstlineno == -1 && PyErr_Occurred()) {
_PyArg_BadArgument("replace", "argument 'co_filename'", "str", args[13]);
goto exit;
}
- if (PyUnicode_READY(args[13]) == -1) {
- goto exit;
- }
co_filename = args[13];
if (!--noptargs) {
goto skip_optional_kwonly;
_PyArg_BadArgument("replace", "argument 'co_name'", "str", args[14]);
goto exit;
}
- if (PyUnicode_READY(args[14]) == -1) {
- goto exit;
- }
co_name = args[14];
if (!--noptargs) {
goto skip_optional_kwonly;
_PyArg_BadArgument("replace", "argument 'co_qualname'", "str", args[15]);
goto exit;
}
- if (PyUnicode_READY(args[15]) == -1) {
- goto exit;
- }
co_qualname = args[15];
if (!--noptargs) {
goto skip_optional_kwonly;
exit:
return return_value;
}
-/*[clinic end generated code: output=f1fab6e71c785182 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=4ca4c0c403dbfa71 input=a9049054013a1b77]*/
_PyArg_BadArgument("__format__", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
format_spec = arg;
return_value = complex___format___impl(self, format_spec);
exit:
return return_value;
}
-/*[clinic end generated code: output=52e85a1e258425d6 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=d438b7ed87f8459e input=a9049054013a1b77]*/
_PyArg_BadArgument("__format__", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
format_spec = arg;
return_value = float___format___impl(self, format_spec);
exit:
return return_value;
}
-/*[clinic end generated code: output=ea329577074911b9 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=355c3f5102034a41 input=a9049054013a1b77]*/
_PyArg_BadArgument("__format__", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
format_spec = arg;
return_value = int___format___impl(self, format_spec);
_PyArg_BadArgument("to_bytes", "argument 'byteorder'", "str", args[1]);
goto exit;
}
- if (PyUnicode_READY(args[1]) == -1) {
- goto exit;
- }
byteorder = args[1];
if (!--noptargs) {
goto skip_optional_pos;
_PyArg_BadArgument("from_bytes", "argument 'byteorder'", "str", args[1]);
goto exit;
}
- if (PyUnicode_READY(args[1]) == -1) {
- goto exit;
- }
byteorder = args[1];
if (!--noptargs) {
goto skip_optional_pos;
{
return int_is_integer_impl(self);
}
-/*[clinic end generated code: output=cfdf35d916158d4f input=a9049054013a1b77]*/
+/*[clinic end generated code: output=75ed306fff493ba1 input=a9049054013a1b77]*/
_PyArg_BadArgument("cast", "argument 'format'", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
format = args[0];
if (!noptargs) {
goto skip_optional_pos;
exit:
return return_value;
}
-/*[clinic end generated code: output=01613814112cedd7 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=a4f6992947bcaf25 input=a9049054013a1b77]*/
_PyArg_BadArgument("module", "argument 'name'", "str", fastargs[0]);
goto exit;
}
- if (PyUnicode_READY(fastargs[0]) == -1) {
- goto exit;
- }
name = fastargs[0];
if (!noptargs) {
goto skip_optional_pos;
exit:
return return_value;
}
-/*[clinic end generated code: output=2f897c9e4721f03f input=a9049054013a1b77]*/
+/*[clinic end generated code: output=a5a750cc8190576e input=a9049054013a1b77]*/
_PyArg_BadArgument("__format__", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
format_spec = arg;
return_value = object___format___impl(self, format_spec);
{
return object___dir___impl(self);
}
-/*[clinic end generated code: output=d2fc52440a89f2fa input=a9049054013a1b77]*/
+/*[clinic end generated code: output=43533e6981550e9e input=a9049054013a1b77]*/
_PyArg_BadArgument("replace", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
old = args[0];
if (!PyUnicode_Check(args[1])) {
_PyArg_BadArgument("replace", "argument 2", "str", args[1]);
goto exit;
}
- if (PyUnicode_READY(args[1]) == -1) {
- goto exit;
- }
new = args[1];
if (nargs < 3) {
goto skip_optional;
_PyArg_BadArgument("removeprefix", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
prefix = arg;
return_value = unicode_removeprefix_impl(self, prefix);
_PyArg_BadArgument("removesuffix", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
suffix = arg;
return_value = unicode_removesuffix_impl(self, suffix);
_PyArg_BadArgument("maketrans", "argument 2", "str", args[1]);
goto exit;
}
- if (PyUnicode_READY(args[1]) == -1) {
- goto exit;
- }
y = args[1];
if (nargs < 3) {
goto skip_optional;
_PyArg_BadArgument("maketrans", "argument 3", "str", args[2]);
goto exit;
}
- if (PyUnicode_READY(args[2]) == -1) {
- goto exit;
- }
z = args[2];
skip_optional:
return_value = unicode_maketrans_impl(x, y, z);
_PyArg_BadArgument("__format__", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
format_spec = arg;
return_value = unicode___format___impl(self, format_spec);
exit:
return return_value;
}
-/*[clinic end generated code: output=05d942840635dadf input=a9049054013a1b77]*/
+/*[clinic end generated code: output=0a71c4aeffdf0bc5 input=a9049054013a1b77]*/
_PyArg_BadArgument("exec_query", "argument 'query'", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
query = args[0];
return_value = _wmi_exec_query_impl(module, query);
exit:
return return_value;
}
-/*[clinic end generated code: output=7fdf0c0579ddb566 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=923d09bee1d15c5f input=a9049054013a1b77]*/
_PyArg_BadArgument("putwch", "argument", "a unicode character", arg);
goto exit;
}
- if (PyUnicode_READY(arg)) {
- goto exit;
- }
if (PyUnicode_GET_LENGTH(arg) != 1) {
_PyArg_BadArgument("putwch", "argument", "a unicode character", arg);
goto exit;
_PyArg_BadArgument("ungetwch", "argument", "a unicode character", arg);
goto exit;
}
- if (PyUnicode_READY(arg)) {
- goto exit;
- }
if (PyUnicode_GET_LENGTH(arg) != 1) {
_PyArg_BadArgument("ungetwch", "argument", "a unicode character", arg);
goto exit;
#ifndef MSVCRT_GETERRORMODE_METHODDEF
#define MSVCRT_GETERRORMODE_METHODDEF
#endif /* !defined(MSVCRT_GETERRORMODE_METHODDEF) */
-/*[clinic end generated code: output=2db6197608a6aab3 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=9dd12bf210e362a4 input=a9049054013a1b77]*/
_PyArg_BadArgument("SetValue", "argument 4", "str", args[3]);
goto exit;
}
- if (PyUnicode_READY(args[3]) == -1) {
- goto exit;
- }
value_obj = args[3];
return_value = winreg_SetValue_impl(module, key, sub_key, type, value_obj);
#ifndef WINREG_QUERYREFLECTIONKEY_METHODDEF
#define WINREG_QUERYREFLECTIONKEY_METHODDEF
#endif /* !defined(WINREG_QUERYREFLECTIONKEY_METHODDEF) */
-/*[clinic end generated code: output=bbfdbb8681102d5c input=a9049054013a1b77]*/
+/*[clinic end generated code: output=d2bf1f58ad07e5f8 input=a9049054013a1b77]*/
_PyArg_BadArgument("warn_explicit", "argument 'filename'", "str", args[2]);
goto exit;
}
- if (PyUnicode_READY(args[2]) == -1) {
- goto exit;
- }
filename = args[2];
lineno = _PyLong_AsInt(args[3]);
if (lineno == -1 && PyErr_Occurred()) {
{
return warnings_filters_mutated_impl(module);
}
-/*[clinic end generated code: output=20429719d7223bdc input=a9049054013a1b77]*/
+/*[clinic end generated code: output=f8d67e0f75771c36 input=a9049054013a1b77]*/
_PyArg_BadArgument("format", "argument 2", "str", args[1]);
goto exit;
}
- if (PyUnicode_READY(args[1]) == -1) {
- goto exit;
- }
format_spec = args[1];
skip_optional:
return_value = builtin_format_impl(module, value, format_spec);
exit:
return return_value;
}
-/*[clinic end generated code: output=84a04e7446debf58 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=ef2f16ece134d62d input=a9049054013a1b77]*/
_PyArg_BadArgument("_fix_co_filename", "argument 2", "str", args[1]);
goto exit;
}
- if (PyUnicode_READY(args[1]) == -1) {
- goto exit;
- }
path = args[1];
return_value = _imp__fix_co_filename_impl(module, code, path);
_PyArg_BadArgument("init_frozen", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
name = arg;
return_value = _imp_init_frozen_impl(module, name);
_PyArg_BadArgument("find_frozen", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
name = args[0];
if (!noptargs) {
goto skip_optional_kwonly;
_PyArg_BadArgument("get_frozen_object", "argument 1", "str", args[0]);
goto exit;
}
- if (PyUnicode_READY(args[0]) == -1) {
- goto exit;
- }
name = args[0];
if (nargs < 2) {
goto skip_optional;
_PyArg_BadArgument("is_frozen_package", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
name = arg;
return_value = _imp_is_frozen_package_impl(module, name);
_PyArg_BadArgument("is_builtin", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
name = arg;
return_value = _imp_is_builtin_impl(module, name);
_PyArg_BadArgument("is_frozen", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
name = arg;
return_value = _imp_is_frozen_impl(module, name);
#ifndef _IMP_EXEC_DYNAMIC_METHODDEF
#define _IMP_EXEC_DYNAMIC_METHODDEF
#endif /* !defined(_IMP_EXEC_DYNAMIC_METHODDEF) */
-/*[clinic end generated code: output=b18d46e0036eff49 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=a95ec234672280a2 input=a9049054013a1b77]*/
_PyArg_BadArgument("intern", "argument", "str", arg);
goto exit;
}
- if (PyUnicode_READY(arg) == -1) {
- goto exit;
- }
s = arg;
return_value = sys_intern_impl(module, s);
#ifndef SYS_GETANDROIDAPILEVEL_METHODDEF
#define SYS_GETANDROIDAPILEVEL_METHODDEF
#endif /* !defined(SYS_GETANDROIDAPILEVEL_METHODDEF) */
-/*[clinic end generated code: output=6d598acc26237fbe input=a9049054013a1b77]*/
+/*[clinic end generated code: output=41937e0843c68009 input=a9049054013a1b77]*/
_PyArg_BadArgument("{{name}}", {displayname}, "a unicode character", {argname});
goto exit;
}}}}
- if (PyUnicode_READY({argname})) {{{{
- goto exit;
- }}}}
if (PyUnicode_GET_LENGTH({argname}) != 1) {{{{
_PyArg_BadArgument("{{name}}", {displayname}, "a unicode character", {argname});
goto exit;
_PyArg_BadArgument("{{name}}", {displayname}, "str", {argname});
goto exit;
}}}}
- if (PyUnicode_READY({argname}) == -1) {{{{
- goto exit;
- }}}}
{paramname} = {argname};
""".format(argname=argname, paramname=self.parser_name,
displayname=displayname)
if rcs_dir in dirs:
dirs.remove(rcs_dir)
for filename in files:
- if not (filename.endswith('.c') or filename.endswith('.h')):
+ # handle .c, .cpp and .h files
+ if not filename.endswith(('.c', '.cpp', '.h')):
continue
path = os.path.join(root, filename)
if ns.verbose: