From: Georg Brandl Date: Wed, 12 Sep 2007 18:10:56 +0000 (+0000) Subject: Fix #1139: PyFile_Encoding really is PyFile_SetEncoding. X-Git-Tag: v2.6a1~1303 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a25fcd585f379476c073941123476165bf69d2b;p=thirdparty%2FPython%2Fcpython.git Fix #1139: PyFile_Encoding really is PyFile_SetEncoding. --- diff --git a/Doc/c-api/concrete.rst b/Doc/c-api/concrete.rst index a0fd6926d825..209f3e645957 100644 --- a/Doc/c-api/concrete.rst +++ b/Doc/c-api/concrete.rst @@ -2505,7 +2505,7 @@ change in future releases of Python. immediately after file object creation. -.. cfunction:: int PyFile_Encoding(PyFileObject *p, char *enc) +.. cfunction:: int PyFile_SetEncoding(PyFileObject *p, const char *enc) Set the file's encoding for Unicode output to *enc*. Return 1 on success and 0 on failure.