Lines Matching defs:encoding
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"
317 "respectively. The *encoding* can be \'bytes\' to read these 8-bit\n"
322 int fix_imports, const char *encoding,
329 static const char * const _keywords[] = {"file", "fix_imports", "encoding", "errors", "buffers", NULL};
337 const char *encoding = "ASCII";
360 _PyArg_BadArgument("Unpickler", "argument 'encoding'", "str", fastargs[2]);
364 encoding = PyUnicode_AsUTF8AndSize(fastargs[2], &encoding_length);
365 if (encoding == NULL) {
368 if (strlen(encoding) != (size_t)encoding_length) {
396 return_value = _pickle_Unpickler___init___impl((UnpicklerObject *)self, file, fix_imports, encoding, errors, buffers);
626 "load($module, /, file, *, fix_imports=True, encoding=\'ASCII\',\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"
651 "respectively. The *encoding* can be \'bytes\' to read these 8-bit\n"
659 const char *encoding, const char *errors,
666 static const char * const _keywords[] = {"file", "fix_imports", "encoding", "errors", "buffers", NULL};
672 const char *encoding = "ASCII";
695 _PyArg_BadArgument("load", "argument 'encoding'", "str", args[2]);
699 encoding = PyUnicode_AsUTF8AndSize(args[2], &encoding_length);
700 if (encoding == NULL) {
703 if (strlen(encoding) != (size_t)encoding_length) {
731 return_value = _pickle_load_impl(module, file, fix_imports, encoding, errors, buffers);
738 "loads($module, data, /, *, fix_imports=True, encoding=\'ASCII\',\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"
754 "respectively. The *encoding* can be \'bytes\' to read these 8-bit\n"
762 const char *encoding, const char *errors,
769 static const char * const _keywords[] = {"", "fix_imports", "encoding", "errors", "buffers", NULL};
775 const char *encoding = "ASCII";
798 _PyArg_BadArgument("loads", "argument 'encoding'", "str", args[2]);
802 encoding = PyUnicode_AsUTF8AndSize(args[2], &encoding_length);
803 if (encoding == NULL) {
806 if (strlen(encoding) != (size_t)encoding_length) {
834 return_value = _pickle_loads_impl(module, data, fix_imports, encoding, errors, buffers);