Lines Matching defs:errors
7 " errors=None, newline=None, closefd=True, opener=None)\n"
74 "errors is an optional string that specifies how encoding errors are to\n"
78 "errors. (Note that ignoring encoding errors can lead to data loss.)\n"
129 int buffering, const char *encoding, const char *errors,
136 static const char * const _keywords[] = {"file", "mode", "buffering", "encoding", "errors", "newline", "closefd", "opener", NULL};
144 const char *errors = NULL;
209 errors = NULL;
213 errors = PyUnicode_AsUTF8AndSize(args[4], &errors_length);
214 if (errors == NULL) {
217 if (strlen(errors) != (size_t)errors_length) {
223 _PyArg_BadArgument("open", "argument 'errors'", "str or None", args[4]);
264 return_value = _io_open_impl(module, file, mode, buffering, encoding, errors, newline, closefd, opener);