We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e6aa84 commit aaa1e4aCopy full SHA for aaa1e4a
Python/codecs.c
@@ -781,7 +781,8 @@ _PyCodec_ReplaceUnicodeEncodeError(PyObject *exc)
781
{
782
Py_ssize_t start, end, slen;
783
if (_PyUnicodeError_GetParams(exc, NULL, NULL,
784
- &start, &end, &slen, false) < 0) {
+ &start, &end, &slen, false) < 0)
785
+ {
786
return NULL;
787
}
788
PyObject *res = PyUnicode_New(slen, '?');
@@ -813,7 +814,8 @@ _PyCodec_ReplaceUnicodeTranslateError(PyObject *exc)
813
814
815
816
817
818
819
820
821
PyObject *res = PyUnicode_New(slen, Py_UNICODE_REPLACEMENT_CHARACTER);
0 commit comments