]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #24729: Correct reference to open function.
authorJason R. Coombs <jaraco@jaraco.com>
Wed, 29 Jul 2015 18:04:36 +0000 (14:04 -0400)
committerJason R. Coombs <jaraco@jaraco.com>
Wed, 29 Jul 2015 18:04:36 +0000 (14:04 -0400)
Doc/tutorial/inputoutput.rst
Misc/NEWS

index 29dc94863e722f37f0ffdbd71f8c71a9e9f83316..c157f22e6c3edef3baf441668d2c3029d3cce852 100644 (file)
@@ -248,8 +248,8 @@ omitted.
 
 Normally, files are opened in :dfn:`text mode`, that means, you read and write
 strings from and to the file, which are encoded in a specific encoding. If
-encoding is not specified the default is platform dependent (see :func:`~functions.open`).
-``'b'`` appended to the mode opens the file in
+encoding is not specified, the default is platform dependent (see
+:func:`open`). ``'b'`` appended to the mode opens the file in
 :dfn:`binary mode`: now the data is read and written in the form of bytes
 objects.  This mode should be used for all files that don't contain text.
 
index 86267577bd733c7429a15fef205099cecb27c241..63c0c711a533be69d9e36f00e56544e3d69d3599 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -396,6 +396,9 @@ C API
 Documentation
 -------------
 
+- Issue #24729: Correct IO tutorial to match implementation regarding
+  encoding parameter to open function.
+
 - Issue #24351: Clarify what is meant by "identifier" in the context of
   string.Template instances.