Skip to content

gh-111201: fix auto-indent in pyrepl for muliple pound comments - #123196

Merged
pablogsal merged 3 commits into
python:mainfrom
wiggin15:main
Sep 6, 2024
Merged

pablogsal merged 3 commits into
python:mainfrom
wiggin15:main

Conversation

@wiggin15

@wiggin15 wiggin15 commented Aug 21, 2024 •

Copy link
Copy Markdown
Contributor

This commit fixes an issue where a line that contains a control flow statement (if, for, ..) but ends with a comment that starts with multiple "#" signs, will not auto-indent the next line.
This happened because last_char could be updated to one of the "#" signs, missing the actual last character before the comment.

@bedevere-app bedevere-app Bot mentioned this pull request Aug 21, 2024
7 tasks done
@pablogsal
pablogsal enabled auto-merge (squash) September 3, 2024 12:46
@pablogsal pablogsal closed this Sep 3, 2024
auto-merge was automatically disabled September 3, 2024 12:46

Pull request was closed

@pablogsal pablogsal reopened this Sep 3, 2024
@pablogsal
pablogsal enabled auto-merge (squash) September 3, 2024 12:46
@pablogsal
pablogsal merged commit d683f49 into python:main Sep 6, 2024
@miss-islington-app

Copy link
Copy Markdown

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 6, 2024
…pythonGH-123196)

(cherry picked from commit d683f49)

Co-authored-by: Arnon Yaari <wiggin15@yahoo.com>
@bedevere-app

bedevere-app Bot commented Sep 6, 2024

Copy link
Copy Markdown

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

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 only security fixes label Sep 6, 2024
ambv pushed a commit that referenced this pull request Sep 6, 2024
GH-123196) (GH-123764)

(cherry picked from commit d683f49)

Co-authored-by: Arnon Yaari <wiggin15@yahoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

4 participants