Skip to content

Commit 39a33e9

Browse files
authored
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.
1 parent 995d9b9 commit 39a33e9

File tree

6 files changed

+247
-263
lines changed

6 files changed

+247
-263
lines changed

Lib/idlelib/NEWS.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Released on 2019-10-20?
33
======================================
44

55

6+
bpo-35196: Speed up squeezer line counting.
7+
68
bpo-35208: Squeezer now counts wrapped lines before newlines.
79

810
bpo-35555: Gray out Code Context menu entry when it's not applicable.

Lib/idlelib/editor.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,6 @@ def __init__(self, flist=None, filename=None, key=None, root=None):
317317
text.bind("<<zoom-height>>", self.ZoomHeight(self).zoom_height_event)
318318
text.bind("<<toggle-code-context>>",
319319
self.CodeContext(self).toggle_code_context_event)
320-
squeezer = self.Squeezer(self)
321-
text.bind("<<squeeze-current-text>>",
322-
squeezer.squeeze_current_text_event)
323320

324321
def _filename_to_unicode(self, filename):
325322
"""Return filename as BMP unicode so diplayable in Tk."""

0 commit comments

Comments
 (0)