Skip to content

Commit ab4d42a

Browse files
IDLE: Fix typos in docs and comments (GH-13749)
(cherry picked from commit d9677f3) Co-authored-by: Xtreak <tir.karthi@gmail.com>
1 parent 4a941e6 commit ab4d42a

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

Lib/idlelib/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
there are separate dicts for default and user values. Each has
1313
config-type keys 'main', 'extensions', 'highlight', and 'keys'. The
1414
value for each key is a ConfigParser instance that maps section and item
15-
to values. For 'main' and 'extenstons', user values override
15+
to values. For 'main' and 'extensions', user values override
1616
default values. For 'highlight' and 'keys', user sections augment the
1717
default sections (and must, therefore, have distinct names).
1818

Lib/idlelib/configdialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def destroy(self):
199199
def help(self):
200200
"""Create textview for config dialog help.
201201
202-
Attrbutes accessed:
202+
Attributes accessed:
203203
note
204204
205205
Methods:

Lib/idlelib/delegator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __getattr__(self, name):
1414

1515
def resetcache(self):
1616
"Removes added attributes while leaving original attributes."
17-
# Function is really about resetting delagator dict
17+
# Function is really about resetting delegator dict
1818
# to original state. Cache is just a means
1919
for key in self.__cache:
2020
try:

Lib/idlelib/editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def __init__(self, flist=None, filename=None, key=None, root=None):
315315
self.CodeContext(self).toggle_code_context_event)
316316

317317
def _filename_to_unicode(self, filename):
318-
"""Return filename as BMP unicode so diplayable in Tk."""
318+
"""Return filename as BMP unicode so displayable in Tk."""
319319
# Decode bytes to unicode.
320320
if isinstance(filename, bytes):
321321
try:

Lib/idlelib/idle_test/htest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
The first parameter of X must be 'parent'. When called, the parent
1313
argument will be the root window. X must create a child Toplevel
1414
window (or subclass thereof). The Toplevel may be a test widget or
15-
dialog, in which case the callable is the corresonding class. Or the
15+
dialog, in which case the callable is the corresponding class. Or the
1616
Toplevel may contain the widget to be tested or set up a context in
1717
which a test widget is invoked. In this latter case, the callable is a
1818
wrapper function that sets up the Toplevel and other objects. Wrapper

Lib/idlelib/idle_test/mock_tk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Mbox_func:
3737
"""Generic mock for messagebox functions, which all have the same signature.
3838
3939
Instead of displaying a message box, the mock's call method saves the
40-
arguments as instance attributes, which test functions can then examime.
40+
arguments as instance attributes, which test functions can then examine.
4141
The test can set the result returned to ask function
4242
"""
4343
def __init__(self, result=None):

Lib/idlelib/idle_test/test_pyparse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def test_study1(self):
160160
TestInfo('\n def function1(self, a,\n', [0, 1, 2], BRACKET),
161161
TestInfo('())\n', [0, 1], NONE), # Extra closer.
162162
TestInfo(')(\n', [0, 1], BRACKET), # Extra closer.
163-
# For the mismatched example, it doesn't look like contination.
163+
# For the mismatched example, it doesn't look like continuation.
164164
TestInfo('{)(]\n', [0, 1], NONE), # Mismatched.
165165
)
166166

Lib/idlelib/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def find_again(self, text):
8080
If no search was previously run, open a new search dialog. In
8181
this case, no search is done.
8282
83-
If a seach was previously run, the search dialog won't be
83+
If a search was previously run, the search dialog won't be
8484
shown and the options from the previous search (including the
8585
search pattern) will be used to find the next occurrence
8686
of the pattern. Next is relative based on direction.

Lib/idlelib/searchbase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self, root, engine):
3636
text (Text searched): set in open(), only used in subclasses().
3737
ent (ry): created in make_entry() called from create_entry().
3838
row (of grid): 0 in create_widgets(), +1 in make_entry/frame().
39-
default_command: set in subclasses, used in create_widgers().
39+
default_command: set in subclasses, used in create_widgets().
4040
4141
title (of dialog): class attribute, override in subclasses.
4242
icon (of dialog): ditto, use unclear if cannot minimize dialog.

Lib/idlelib/squeezer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
completely unusable.
77
88
This extension will automatically replace long texts with a small button.
9-
Double-cliking this button will remove it and insert the original text instead.
9+
Double-clicking this button will remove it and insert the original text instead.
1010
Middle-clicking will copy the text to the clipboard. Right-clicking will open
1111
the text in a separate viewing window.
1212

Lib/idlelib/undo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from idlelib.delegator import Delegator
44

5-
# tkintter import not needed because module does not create widgets,
5+
# tkinter import not needed because module does not create widgets,
66
# although many methods operate on text widget arguments.
77

88
#$ event <<redo>>

0 commit comments

Comments
 (0)