Lines Matching defs:errors
748 static char *kwlist[] = {"source", "encoding", "errors", 0};
751 const char *errors = NULL;
764 &arg, &encoding, &errors))
769 if (encoding != NULL || errors != NULL) {
771 "encoding or errors without sequence argument");
780 encoded = PyCodec_Encode(arg, encoding, errors);
806 encoded = PyCodec_Encode(arg, encoding, errors);
819 /* If it's not unicode, there can't be encoding or errors */
820 if (encoding != NULL || errors != NULL) {
822 "encoding or errors without a string argument");
2532 "B.decode([encoding[, errors]]) -> unicode object.\n\
2535 to the default encoding. errors may be given to set a different error\n\
2536 handling scheme. Default is 'strict' meaning that encoding errors raise\n\
2545 const char *errors = NULL;
2546 static char *kwlist[] = {"encoding", "errors", 0};
2548 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|ss:decode", kwlist, &encoding, &errors))
2558 return PyCodec_Decode(self, encoding, errors);
2868 bytearray(string, encoding[, errors]) -> bytearray.\n\