Skip to content

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

Merged
picnixz merged 1 commit into
python:mainfrom
moreal:fix-staled-comments
Jun 27, 2025
Merged

gh-108765: fix comment about macro definitions in _stat.c post GH-108854#136027
picnixz merged 1 commit into
python:mainfrom
moreal:fix-staled-comments

Conversation

@moreal

@morealmoreal commented Jun 27, 2025

Copy link
Copy Markdown
Contributor

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

python-cla-botBot commented Jun 27, 2025

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app

This comment was marked as resolved.

@morealmoreal changed the title Fix staled comments in _stat.cUpdate a comment in _stat.c to latestJun 27, 2025
@moreal
morealforce-pushed the fix-staled-comments branch from f0cfe18 to 1fe7601CompareJune 27, 2025 10:44
@bedevere-app

This comment was marked as resolved.

@moreal
morealforce-pushed the fix-staled-comments branch from 1fe7601 to 88aeb4bCompareJune 27, 2025 14:49
@picnixzpicnixz changed the title Update a comment in _stat.c to latestgh-108765: fix comment about macro definitions in _stat.cJun 27, 2025
@bedevere-appbedevere-appBot mentioned this pull request Jun 27, 2025
@picnixzpicnixz changed the title gh-108765: fix comment about macro definitions in _stat.cgh-108765: fix comment about macro definitions in _stat.c post GH-108854Jun 27, 2025
@picnixz

Copy link
Copy Markdown
Member

@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
@picnixzpicnixz 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
Copy Markdown
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

picnixz commented Jun 27, 2025

Copy link
Copy Markdown
Member

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:mainJun 27, 2025
49 checks passed
@miss-islington-app

Copy link
Copy Markdown

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
Copy Markdown

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-appbedevere-appBot removed the needs backport to 3.14 bugs and security fixes label Jun 27, 2025
@bedevere-app

Copy link
Copy Markdown

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

@bedevere-appbedevere-appBot 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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@moreal@picnixz@StanFromIreland