Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aef3fb0

Browse files
committed
Make PyCodec_SurrogateErrors static.
1 parent 4ae1f26 commit aef3fb0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Python/codecs.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,10 @@ PyObject *PyCodec_BackslashReplaceErrors(PyObject *exc)
748748
}
749749
}
750750

751-
PyObject *PyCodec_SurrogateErrors(PyObject *exc)
751+
/* This handler is declared static until someone demonstrates
752+
a need to call it directly. */
753+
static PyObject *
754+
PyCodec_SurrogateErrors(PyObject *exc)
752755
{
753756
PyObject *restuple;
754757
PyObject *object;

0 commit comments

Comments
 (0)