Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-136087: Remove\r from documentedos.linesep values#136088

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
sobolevn wants to merge1 commit intopython:main
base:main
Choose a base branch
Loading
fromsobolevn:issue-136087

Conversation

sobolevn
Copy link
Member

@sobolevnsobolevn commentedJun 29, 2025
edited by bedevere-appbot
Loading

@collinfunk
Copy link
Contributor

Hi, I looked into this a bit.

The value\r used to exist when the variable was added ine9387ea.

It was removed ineca20b6. It was a merge from subversion, but I am 99% percent confident it was a part of this change:

      r63158 | ronald.oussoren | 2008-05-12 07:24:33 -0400 (Mon, 12 May 2008) | 5 lines          Remove references to platform 'mac'          The 'mac' platform (that is, os.name == 'mac') was used for the MacOS 9 port,      which is no longer supported (as of Python 2.4 IIRC).

Wikipedia states that\r was used in Classic Mac OS to represent a newline [1]. The page for Classic Mac OS says Mac OS 9 was the last version. This matches with the subversion commit message.

Therefore, your patch is correct. Good catch!

[1]https://en.wikipedia.org/wiki/Newline#Representation
[2]https://en.wikipedia.org/wiki/Classic_Mac_OS

picnixz reacted with thumbs up emoji

@picnixzpicnixz added needs backport to 3.13bugs and security fixes needs backport to 3.14bugs and security fixes labelsJun 29, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@picnixzpicnixzpicnixz approved these changes

Assignees
No one assigned
Labels
awaiting mergeneeds backport to 3.13bugs and security fixesneeds backport to 3.14bugs and security fixesskip news
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@sobolevn@collinfunk@picnixz

[8]ページ先頭

©2009-2025 Movatter.jp