]> granicus.if.org Git - python/commitdiff
Fix #1139: PyFile_Encoding really is PyFile_SetEncoding.
authorGeorg Brandl <georg@python.org>
Wed, 12 Sep 2007 18:10:56 +0000 (18:10 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 12 Sep 2007 18:10:56 +0000 (18:10 +0000)
Doc/c-api/concrete.rst

index a0fd6926d825072a50a55090fca9ca82b9f0903f..209f3e645957cc0c92bc14c607c4b462c545f636 100644 (file)
@@ -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.