]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-136087: Remove `\r` from documented `os.linesep` values (#136088)
authorsobolevn <mail@sobolevn.me>
Mon, 30 Jun 2025 07:12:05 +0000 (10:12 +0300)
committerGitHub <noreply@github.com>
Mon, 30 Jun 2025 07:12:05 +0000 (10:12 +0300)
Lib/os.py

index 643a7b2f58176a7da111273becfe7856e7c77884..12926c832f5ba5c5cc6bfd5e5905eef654835a88 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.)