summaryrefslogtreecommitdiff
path: root/Python/codecs.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2009-05-02 19:27:30 +0000
committerMartin v. Löwis <martin@v.loewis.de>2009-05-02 19:27:30 +0000
commit73bfca71d5b2bb75e4f9fa79965a6c21a44a671b (patch)
treea17b752f5965aaaa095e35213c6c00e733e7df4c /Python/codecs.c
parent322851b861bf4e2261e5b3f433b5f2bfafdccee8 (diff)
downloadcpython-73bfca71d5b2bb75e4f9fa79965a6c21a44a671b.tar.gz
Make PyCodec_SurrogateErrors static.
Diffstat (limited to 'Python/codecs.c')
-rw-r--r--Python/codecs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Python/codecs.c b/Python/codecs.c
index 3f1412d00c..633a24c661 100644
--- a/Python/codecs.c
+++ b/Python/codecs.c
@@ -748,7 +748,10 @@ PyObject *PyCodec_BackslashReplaceErrors(PyObject *exc)
}
}
-PyObject *PyCodec_SurrogateErrors(PyObject *exc)
+/* This handler is declared static until someone demonstrates
+ a need to call it directly. */
+static PyObject *
+PyCodec_SurrogateErrors(PyObject *exc)
{
PyObject *restuple;
PyObject *object;