Skip to content

Commit 0acb646

Browse files
authored
Fix idlelib typos discovered by min ho, pr 15018. (GH-15029)
1 parent 84846b0 commit 0acb646

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Lib/idlelib/NEWS.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ run dialogs.
3838
bpo-37321: Both subprocess connection error messages now refer to
3939
the 'Startup failure' section of the IDLE doc.
4040

41-
bpo-37039: Adjust "Zoom Height" to individual screens by momemtarily
41+
bpo-37039: Adjust "Zoom Height" to individual screens by momentarily
4242
maximizing the window on first use with a particular screen. Changing
4343
screen settings may invalidate the saved height. While a window is
4444
maximized, "Zoom Height" has no effect.

Lib/idlelib/README.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pyshell.py # Start IDLE, manage shell, complete editor window
6868
query.py # Query user for information
6969
redirector.py # Intercept widget subcommands (for percolator) (nim).
7070
replace.py # Search and replace pattern in text.
71-
rpc.py # Commuicate between idle and user processes (nim).
71+
rpc.py # Communicate between idle and user processes (nim).
7272
rstrip.py # Strip trailing whitespace.
7373
run.py # Manage user code execution subprocess.
7474
runscript.py # Check and run user code.
@@ -97,7 +97,7 @@ Text
9797
CREDITS.txt # not maintained, displayed by About IDLE
9898
HISTORY.txt # NEWS up to July 2001
9999
NEWS.txt # commits, displayed by About IDLE
100-
README.txt # this file, displeyed by About IDLE
100+
README.txt # this file, displayed by About IDLE
101101
TODO.txt # needs review
102102
extend.txt # about writing extensions
103103
help.html # copy of idle.html in docs, displayed by IDLE Help
@@ -166,7 +166,7 @@ Shell # pyshell
166166

167167
Debug (Shell only)
168168
Go to File/Line
169-
debugger # debugger, debugger_r, PyShell.toggle_debuger
169+
debugger # debugger, debugger_r, PyShell.toggle_debugger
170170
Stack Viewer # stackviewer, PyShell.open_stack_viewer
171171
Auto-open Stack Viewer # stackviewer
172172

Lib/idlelib/configdialog.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1793,7 +1793,7 @@ def create_page_general(self):
17931793
"""Return frame of widgets for General tab.
17941794
17951795
Enable users to provisionally change general options. Function
1796-
load_general_cfg intializes tk variables and helplist using
1796+
load_general_cfg initializes tk variables and helplist using
17971797
idleConf. Radiobuttons startup_shell_on and startup_editor_on
17981798
set var startup_edit. Radiobuttons save_ask_on and save_auto_on
17991799
set var autosave. Entry boxes win_width_int and win_height_int

Lib/idlelib/history.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def history_prev(self, event):
3939
return "break"
4040

4141
def fetch(self, reverse):
42-
'''Fetch statememt and replace current line in text widget.
42+
'''Fetch statement and replace current line in text widget.
4343
4444
Set prefix and pointer as needed for successive fetches.
4545
Reset them to None, None when returning to the start line.

Lib/idlelib/idle_test/test_pyparse.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ def test_study2(self):
206206
'openbracket', 'bracketing'])
207207
tests = (
208208
TestInfo('', 0, 0, '', None, ((0, 0),)),
209-
TestInfo("'''This is a multiline continutation docstring.\n\n",
210-
0, 49, "'", None, ((0, 0), (0, 1), (49, 0))),
209+
TestInfo("'''This is a multiline continuation docstring.\n\n",
210+
0, 48, "'", None, ((0, 0), (0, 1), (48, 0))),
211211
TestInfo(' # Comment\\\n',
212212
0, 12, '', None, ((0, 0), (1, 1), (12, 0))),
213213
# A comment without a space is a special case

Lib/idlelib/pyparse.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def get_base_indent_string(self):
575575
return code[i:j]
576576

577577
def is_block_opener(self):
578-
"Return True if the last interesting statemtent opens a block."
578+
"Return True if the last interesting statement opens a block."
579579
self._study2()
580580
return self.lastch == ':'
581581

0 commit comments

Comments
 (0)