Searched refs:badchar (Results 1 – 2 of 2) sorted by relevance
2074 Py_UCS4 badchar = PyUnicode_ReadChar(uself->object, uself->start); in UnicodeEncodeError_str() local2076 if (badchar <= 0xff) in UnicodeEncodeError_str()2078 else if (badchar <= 0xffff) in UnicodeEncodeError_str()2085 (int)badchar, in UnicodeEncodeError_str()2289 Py_UCS4 badchar = PyUnicode_ReadChar(uself->object, uself->start); in UnicodeTranslateError_str() local2291 if (badchar <= 0xff) in UnicodeTranslateError_str()2293 else if (badchar <= 0xffff) in UnicodeTranslateError_str()2299 (int)badchar, in UnicodeTranslateError_str()
532 int badchar = 0; in ensure_utf8() local537 badchar = *c; in ensure_utf8()541 if (badchar) { in ensure_utf8()549 badchar, tok->filename, tok->lineno + 1); in ensure_utf8()