diff options
author | saucoide <32314353+saucoide@users.noreply.github.com> | 2024-07-15 23:33:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-15 23:33:57 (GMT) |
commit | 7d111dac160c658b277ec0fac75eee8edcfbe9dc (patch) | |
tree | 4671db9a11fa54aa4bc94035ed3497d69f3d78cd /Lib/turtle.py | |
parent | 2b1b68939b15b913080a3403e3ba18e2a1f520ef (diff) | |
download | cpython-7d111dac160c658b277ec0fac75eee8edcfbe9dc.zip cpython-7d111dac160c658b277ec0fac75eee8edcfbe9dc.tar.gz cpython-7d111dac160c658b277ec0fac75eee8edcfbe9dc.tar.bz2 |
gh-121610: pyrepl - handle extending blocks when multi-statement blocks are pasted (GH-121757)
console.compile with the "single" param throws an exception when
there are multiple statements, never allowing to adding newlines
to a pasted code block (gh-121610)
This add a few extra checks to allow extending when in an indented
block, and tests for a few examples
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Lib/turtle.py')
0 files changed, 0 insertions, 0 deletions