Skip to content

Commit 603a6ac

Browse files
committed
post-merge
1 parent 44f3ac9 commit 603a6ac

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Python/codecs.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1166,6 +1166,8 @@ get_standard_encoding(PyObject *encoding, int *code, int *bytelength)
11661166
}
11671167

11681168

1169+
// --- handler: 'surrogatepass' -----------------------------------------------
1170+
11691171
static PyObject *
11701172
_PyCodec_SurrogatePassUnicodeEncodeError(PyObject *exc)
11711173
{
@@ -1356,6 +1358,7 @@ PyCodec_SurrogatePassErrors(PyObject *exc)
13561358
}
13571359
}
13581360

1361+
13591362
static PyObject *
13601363
PyCodec_SurrogateEscapeErrors(PyObject *exc)
13611364
{
@@ -1475,11 +1478,13 @@ namereplace_errors(PyObject *Py_UNUSED(self), PyObject *exc)
14751478
}
14761479

14771480

1478-
static PyObject *surrogatepass_errors(PyObject *self, PyObject *exc)
1481+
static inline PyObject *
1482+
surrogatepass_errors(PyObject *Py_UNUSED(self), PyObject *exc)
14791483
{
14801484
return PyCodec_SurrogatePassErrors(exc);
14811485
}
14821486

1487+
14831488
static PyObject *surrogateescape_errors(PyObject *self, PyObject *exc)
14841489
{
14851490
return PyCodec_SurrogateEscapeErrors(exc);

0 commit comments

Comments
 (0)