FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-92266: Remove embedded tabs from ``c-analyzer/cpython/_parser.py`` by AA-Turner · Pull Request #137622 · python/cpython · GitHub

/ cpython Public

GH-92266: Remove embedded tabs from c-analyzer/cpython/_parser.py - #137622

Merged
AA-Turner merged 3 commits into
python:mainfrom
AA-Turner:c-analyzer-embedded-tabs
Sep 17, 2025
Merged

GH-92266: Remove embedded tabs from c-analyzer/cpython/_parser.py#137622
AA-Turner merged 3 commits into
python:mainfrom
AA-Turner:c-analyzer-embedded-tabs

Conversation

AA-Turner commented Aug 10, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

This is an attempt to avoid some of the problems we've seen with embedded tabs by changing the global variables within c-analyzer/cpython/_parser.py to use more structured data.

The output is identical, save for INCL_DIRS, where the fourth line (* ./Include/internal/mimalloc) currently uses spaces instead of tabs, showing that the current format is quite hard to properly keep up to date. The errant line was added in #109914.

What do you think @ericsnowcurrently?

See also:

Comment thread Tools/c-analyzer/cpython/_parser.py Outdated
Comment thread Tools/c-analyzer/cpython/_parser.py Outdated

ericsnowcurrently left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM (with your own suggested changes applied)

AA-Turner enabled auto-merge (squash) September 17, 2025 15:14
AA-Turner merged commit 2212ae5 into python:main Sep 17, 2025
43 checks passed
AA-Turner deleted the c-analyzer-embedded-tabs branch September 17, 2025 15:25
AA-Turner added the needs backport to 3.14 bugs and security fixes label Oct 7, 2025

Copy link
Copy Markdown

Thanks @AA-Turner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 7, 2025
…r.py`` (pythonGH-137622)

(cherry picked from commit 2212ae5)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>

bedevere-app Bot commented Oct 7, 2025

Copy link
Copy Markdown

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

bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Oct 7, 2025
AA-Turner added a commit that referenced this pull request Oct 7, 2025
…er.py`` (GH-137622) (#139718)

GH-92266: Remove embedded tabs from ``c-analyzer/cpython/_parser.py`` (GH-137622)
(cherry picked from commit 2212ae5)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL