Skip to content

gh-108765: fix comment about macro definitions in _stat.c post GH-108854 #136027

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2025

Conversation

moreal
Copy link
Contributor

@moreal moreal commented Jun 27, 2025

This pull request only fixes a typo in the _stat.c file.

Since #108854, the definitions of S_ISDIR(), S_ISREG() and S_ISCHR(), as well as the part that includes sys/stat.h, have moved from Include/pyport.h to Include/fileutils.h. However the comment in Modules/_stat.c still refers to Include/pyport.h so this pull request fixes it.


As note, I didn't create and add an issue number because I think it is a trivial change. In the same context, I didn't think it was necessary to add NEWS as well.

@python-cla-bot
Copy link

python-cla-bot bot commented Jun 27, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app

This comment was marked as resolved.

@moreal moreal changed the title Fix staled comments in _stat.c Update a comment in _stat.c to latest Jun 27, 2025
@moreal moreal force-pushed the fix-staled-comments branch from f0cfe18 to 1fe7601 Compare June 27, 2025 10:44
@bedevere-app

This comment was marked as resolved.

@moreal moreal force-pushed the fix-staled-comments branch from 1fe7601 to 88aeb4b Compare June 27, 2025 14:49
@picnixz picnixz changed the title Update a comment in _stat.c to latest gh-108765: fix comment about macro definitions in _stat.c Jun 27, 2025
@picnixz picnixz changed the title gh-108765: fix comment about macro definitions in _stat.c gh-108765: fix comment about macro definitions in _stat.c post GH-108854 Jun 27, 2025
@picnixz
Copy link
Member

picnixz commented Jun 27, 2025

@StanFromIreland In general, if the PR amends a previous PR, we can reuse the issue number of that PR (if there is one).

@picnixz picnixz enabled auto-merge (squash) June 27, 2025 14:53
@picnixz picnixz added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Jun 27, 2025
@StanFromIreland
Copy link
Member

I was considering that, I hesitated for a few minutes before applying the label...

My reasoning was, the issue was quite broad and would not add much, but I guess it is good to do so anyway. I will do so in the future!

@picnixz
Copy link
Member

picnixz commented Jun 27, 2025

For such PRs I usually add "post GH-*" in the title so that one can click on it as well.

@picnixz picnixz merged commit 0141e7f into python:main Jun 27, 2025
49 checks passed
@miss-islington-app
Copy link

Thanks @moreal for the PR, and @picnixz for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 27, 2025
…pythonGH-108854 (pythonGH-136027)

(cherry picked from commit 0141e7f)

Co-authored-by: Lee Dogeon <dev.moreal@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Jun 27, 2025

GH-136043 is a backport of this pull request to the 3.14 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 27, 2025
…pythonGH-108854 (pythonGH-136027)

(cherry picked from commit 0141e7f)

Co-authored-by: Lee Dogeon <dev.moreal@gmail.com>
@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Jun 27, 2025
@bedevere-app
Copy link

bedevere-app bot commented Jun 27, 2025

GH-136044 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jun 27, 2025
picnixz pushed a commit that referenced this pull request Jun 27, 2025
GH-108854 (GH-136027) (#136044)

gh-108765: fix comment about macro definitions in `_stat.c` post GH-108854 (GH-136027)
(cherry picked from commit 0141e7f)

Co-authored-by: Lee Dogeon <dev.moreal@gmail.com>
picnixz pushed a commit that referenced this pull request Jun 27, 2025
GH-108854 (GH-136027) (#136043)

gh-108765: fix comment about macro definitions in `_stat.c` post GH-108854 (GH-136027)
(cherry picked from commit 0141e7f)

Co-authored-by: Lee Dogeon <dev.moreal@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants