[3.13] gh-111201: Improve pyrepl auto indentation (GH-119606) (GH-119833)

- auto-indent when editing multi-line block
- ignore comments

(cherry picked from commit dae0375bd9)

Co-authored-by: Arnon Yaari <wiggin15@yahoo.com>
This commit is contained in:
Miss Islington (bot) 2024-05-31 11:51:53 +02:00 committed by GitHub
parent 7dae73b21b
commit 38bf39cb4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 101 additions and 11 deletions

View file

@ -168,8 +168,8 @@ def test_newline_within_block_trailing_whitespace(self):
expected = (
"def foo():\n"
"\n"
"\n"
" \n"
" \n"
" a = 1\n"
" \n"
" " # HistoricalReader will trim trailing whitespace