diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-01-13 08:43:08 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-13 08:43:08 -0800 |
| commit | 47bd7770229b5238a438703ee1d52da2e983ec9e (patch) | |
| tree | 9e033e7b97fba6aebe843f40ecbebd2e2564fc03 /Lib/idlelib/pyshell.py | |
| parent | 678c5c07521caca809b1356d954975e6234c49ae (diff) | |
| download | cpython-git-47bd7770229b5238a438703ee1d52da2e983ec9e.tar.gz | |
bpo-35196: Optimize Squeezer's write() interception (GH-10454)
The new functionality of Squeezer.reload() is also tested, along with some general
re-working of the tests in test_squeezer.py.
(cherry picked from commit 39a33e99270848d34628cdbb1fdb727f9ede502a)
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Diffstat (limited to 'Lib/idlelib/pyshell.py')
| -rwxr-xr-x | Lib/idlelib/pyshell.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py index b6172fd6b9..ea49aff08b 100755 --- a/Lib/idlelib/pyshell.py +++ b/Lib/idlelib/pyshell.py @@ -899,6 +899,9 @@ class PyShell(OutputWindow): if use_subprocess: text.bind("<<view-restart>>", self.view_restart_mark) text.bind("<<restart-shell>>", self.restart_shell) + squeezer = self.Squeezer(self) + text.bind("<<squeeze-current-text>>", + squeezer.squeeze_current_text_event) self.save_stdout = sys.stdout self.save_stderr = sys.stderr |
