]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-136087: Remove `\r` from documented `os.linesep` values (GH-136088) (#136112)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 30 Jun 2025 07:44:38 +0000 (09:44 +0200)
committerGitHub <noreply@github.com>
Mon, 30 Jun 2025 07:44:38 +0000 (10:44 +0300)
gh-136087: Remove `\r` from documented `os.linesep` values (GH-136088)
(cherry picked from commit 980a56843bf631ea80c1486a367d41031dec6a7e)

Co-authored-by: sobolevn <mail@sobolevn.me>
Lib/os.py

index b4c9f84c36d565adb001d1921299066140016862..1b1645f429f8532806635300a59713a6b3d515e0 100644 (file)
--- 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.)