From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 30 Jun 2025 07:44:29 +0000 (+0200) Subject: [3.14] gh-136087: Remove `\r` from documented `os.linesep` values (GH-136088) (#136111) X-Git-Tag: v3.14.0b4~67 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2e6d3f0a1b751afdbdb66c93ed210642f9bb1095;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-136087: Remove `\r` from documented `os.linesep` values (GH-136088) (#136111) gh-136087: Remove `\r` from documented `os.linesep` values (GH-136088) (cherry picked from commit 980a56843bf631ea80c1486a367d41031dec6a7e) Co-authored-by: sobolevn --- diff --git a/Lib/os.py b/Lib/os.py index 643a7b2f5817..12926c832f5b 100644 --- a/Lib/os.py +++ b/Lib/os.py @@ -10,7 +10,7 @@ This exports: - os.extsep is the extension separator (always '.') - os.altsep is the alternate pathname separator (None or '/') - os.pathsep is the component separator used in $PATH etc - - os.linesep is the line separator in text files ('\r' or '\n' or '\r\n') + - os.linesep is the line separator in text files ('\n' or '\r\n') - os.defpath is the default search path for executables - os.devnull is the file path of the null device ('/dev/null', etc.)