summaryrefslogtreecommitdiffstats
path: root/Python/codecs.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2009-05-02 19:27:30 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2009-05-02 19:27:30 (GMT)
commitaef3fb082ce3fec607ac2ba0afe71db1195a7ba7 (patch)
tree1a0a90493cc544ff5cb6e6b99faf83643f050d0c /Python/codecs.c
parent4ae1f261f86ab224e7de22791ba07dbb4440e7db (diff)
downloadcpython-aef3fb082ce3fec607ac2ba0afe71db1195a7ba7.zip
cpython-aef3fb082ce3fec607ac2ba0afe71db1195a7ba7.tar.gz
cpython-aef3fb082ce3fec607ac2ba0afe71db1195a7ba7.tar.bz2
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 3f1412d..633a24c 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;