Skip to content

Commit 61d86ce

Browse files
author
martin.v.loewis
committed
Make PyCodec_SurrogateErrors static.
git-svn-id: http://svn.python.org/projects/python/branches/py3k@72217 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 82bdfa4 commit 61d86ce

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)