Lines Matching defs:errors
295 "Unpickler(file, *, fix_imports=True, encoding=\'ASCII\', errors=\'strict\',\n"
311 "Optional keyword arguments are *fix_imports*, *encoding* and *errors*,\n"
315 "*encoding* and *errors* tell pickle how to decode 8-bit string\n"
323 const char *errors, PyObject *buffers);
329 static const char * const _keywords[] = {"file", "fix_imports", "encoding", "errors", "buffers", NULL};
338 const char *errors = "strict";
378 _PyArg_BadArgument("Unpickler", "argument 'errors'", "str", fastargs[3]);
382 errors = PyUnicode_AsUTF8AndSize(fastargs[3], &errors_length);
383 if (errors == NULL) {
386 if (strlen(errors) != (size_t)errors_length) {
396 return_value = _pickle_Unpickler___init___impl((UnpicklerObject *)self, file, fix_imports, encoding, errors, buffers);
627 " errors=\'strict\', buffers=())\n"
645 "Optional keyword arguments are *fix_imports*, *encoding* and *errors*,\n"
649 "*encoding* and *errors* tell pickle how to decode 8-bit string\n"
659 const char *encoding, const char *errors,
666 static const char * const _keywords[] = {"file", "fix_imports", "encoding", "errors", "buffers", NULL};
673 const char *errors = "strict";
713 _PyArg_BadArgument("load", "argument 'errors'", "str", args[3]);
717 errors = PyUnicode_AsUTF8AndSize(args[3], &errors_length);
718 if (errors == NULL) {
721 if (strlen(errors) != (size_t)errors_length) {
731 return_value = _pickle_load_impl(module, file, fix_imports, encoding, errors, buffers);
739 " errors=\'strict\', buffers=())\n"
748 "Optional keyword arguments are *fix_imports*, *encoding* and *errors*,\n"
752 "*encoding* and *errors* tell pickle how to decode 8-bit string\n"
762 const char *encoding, const char *errors,
769 static const char * const _keywords[] = {"", "fix_imports", "encoding", "errors", "buffers", NULL};
776 const char *errors = "strict";
816 _PyArg_BadArgument("loads", "argument 'errors'", "str", args[3]);
820 errors = PyUnicode_AsUTF8AndSize(args[3], &errors_length);
821 if (errors == NULL) {
824 if (strlen(errors) != (size_t)errors_length) {
834 return_value = _pickle_loads_impl(module, data, fix_imports, encoding, errors, buffers);