Lines Matching defs:errors
698 char *errors; /* Name of errors handling scheme to used when
1620 self->errors = NULL;
1674 const char *errors)
1678 if (errors == NULL)
1679 errors = "strict";
1682 self->errors = _PyMem_Strdup(errors);
1683 if (self->encoding == NULL || self->errors == NULL) {
5473 obj = PyUnicode_FromEncodedObject(bytes, self->encoding, self->errors);
5512 obj = PyUnicode_Decode(s, size, self->encoding, self->errors);
7136 if (self->errors != NULL)
7137 res += strlen(self->errors) + 1;
7168 PyMem_Free(self->errors);
7208 PyMem_Free(self->errors);
7209 self->errors = NULL;
7222 errors: str = 'strict'
7237 Optional keyword arguments are *fix_imports*, *encoding* and *errors*,
7241 *encoding* and *errors* tell pickle how to decode 8-bit string
7250 const char *errors, PyObject *buffers)
7260 if (_Unpickler_SetInputEncoding(self, encoding, errors) < 0)
7777 errors: str = 'strict'
7795 Optional keyword arguments are *fix_imports*, *encoding* and *errors*,
7799 *encoding* and *errors* tell pickle how to decode 8-bit string
7807 const char *encoding, const char *errors,
7820 if (_Unpickler_SetInputEncoding(unpickler, encoding, errors) < 0)
7846 errors: str = 'strict'
7855 Optional keyword arguments are *fix_imports*, *encoding* and *errors*,
7859 *encoding* and *errors* tell pickle how to decode 8-bit string
7867 const char *encoding, const char *errors,
7880 if (_Unpickler_SetInputEncoding(unpickler, encoding, errors) < 0)