Skip to content

Commit 646e4c8

Browse files
authored
[3.6] Fix miscellaneous typos in idlelib (GH-4275) (#4291)
Manual partial backport of patch that fixed nearly 50 other files.
1 parent f444356 commit 646e4c8

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Lib/idlelib/NEWS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ extension.cfg. All take effect as soon as one clicks Apply or Ok.
8181
'<<zoom-height>>'. Any (global) customizations made before 3.6.3 will
8282
not affect their keyset-specific customization after 3.6.3. and vice
8383
versa.
84-
Inital patch by Charles Wohlganger, revised by Terry Jan Reedy.
84+
Initial patch by Charles Wohlganger, revised by Terry Jan Reedy.
8585

8686
bpo-31051: Rearrange condigdialog General tab.
8787
Sort non-Help options into Window (Shell+Editor) and Editor (only).

Lib/idlelib/browser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class ModuleBrowser:
5858
"""Browse module classes and functions in IDLE.
5959
"""
6060
# This class is also the base class for pathbrowser.PathBrowser.
61-
# Init and close are inherited, other methods are overriden.
61+
# Init and close are inherited, other methods are overridden.
6262
# PathBrowser.__init__ does not call __init__ below.
6363

6464
def __init__(self, master, path, *, _htest=False, _utest=False):

Lib/idlelib/idle_test/test_replace.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ def test_replace_simple(self):
7474
replace()
7575
equal(text.get('1.8', '1.12'), 'asdf')
7676

77-
# dont "match word" case
77+
# don't "match word" case
7878
text.mark_set('insert', '1.0')
7979
pv.set('is')
8080
rv.set('hello')
8181
replace()
8282
equal(text.get('1.2', '1.7'), 'hello')
8383

84-
# dont "match case" case
84+
# don't "match case" case
8585
pv.set('string')
8686
rv.set('world')
8787
replace()

Lib/idlelib/paragraph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def reformat_comment(data, limit, comment_header):
158158
newdata = reformat_paragraph(data, format_width)
159159
# re-split and re-insert the comment header.
160160
newdata = newdata.split("\n")
161-
# If the block ends in a \n, we dont want the comment prefix
161+
# If the block ends in a \n, we don't want the comment prefix
162162
# inserted after it. (Im not sure it makes sense to reformat a
163163
# comment block that is not made of complete lines, but whatever!)
164164
# Can't think of a clean solution, so we hack away

0 commit comments

Comments
 (0)