Skip to content

Commit 067a186

Browse files
authored
Restore deleted comment
1 parent 6494cab commit 067a186

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/codecs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,6 +1384,7 @@ _PyCodec_SurrogateEscapeUnicodeEncodeError(PyObject *exc)
13841384
/* object is guaranteed to be "ready" */
13851385
Py_UCS4 ch = PyUnicode_READ_CHAR(obj, i);
13861386
if (ch < 0xdc80 || ch > 0xdcff) {
1387+
/* Not a UTF-8b surrogate, fail with original exception */
13871388
Py_DECREF(obj);
13881389
Py_DECREF(res);
13891390
PyErr_SetObject(PyExceptionInstance_Class(exc), exc);

0 commit comments

Comments
 (0)