]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Make PyCodec_SurrogateErrors static.
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 2 May 2009 19:27:30 +0000 (19:27 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 2 May 2009 19:27:30 +0000 (19:27 +0000)
Python/codecs.c

index 3f1412d00ca60675585e2c139ce51910115cf8e9..633a24c6611ea2ba225535c86a8817f34576221f 100644 (file)
@@ -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;