]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Clarify U-mode deprecation in open() (GH-11646)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 27 Jan 2019 16:27:58 +0000 (08:27 -0800)
committerGitHub <noreply@github.com>
Sun, 27 Jan 2019 16:27:58 +0000 (08:27 -0800)
commit658ff844963b68b420d663c188cd5fc78442db3f
tree46cde2184c01969a00fdecb81f54f32efb664e8f
parentb2b023c657ba8c3f4a24d0c847d10fe8e2a73d44
Clarify U-mode deprecation in open() (GH-11646)

The previous wording could be read as saying that universal
newlines mode itself was deprecated, when it's only the 'U'
character in the mode field that should be avoided.

The update also moves the description of the 'U' mode character
out of the mode table, as the longer explanation was overly
intrusive as a table entry and overshadowed the actually useful
mode characters.
(cherry picked from commit 3171df34141c1f26ec16dccb4357184c0cf6c58f)

Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
Doc/library/functions.rst