]> granicus.if.org Git - python/commitdiff
Fix idlelib typos discovered by min ho, pr 15018. (GH-15029)
authorTerry Jan Reedy <tjreedy@udel.edu>
Tue, 30 Jul 2019 22:14:58 +0000 (18:14 -0400)
committerGitHub <noreply@github.com>
Tue, 30 Jul 2019 22:14:58 +0000 (18:14 -0400)
Lib/idlelib/NEWS.txt
Lib/idlelib/README.txt
Lib/idlelib/configdialog.py
Lib/idlelib/history.py
Lib/idlelib/idle_test/test_pyparse.py
Lib/idlelib/pyparse.py

index 109b2d523a6e790ed58676266047a097571a49f0..e9a9b0255b0db3faff063b263cb259819f195ec1 100644 (file)
@@ -38,7 +38,7 @@ run dialogs.
 bpo-37321: Both subprocess connection error messages now refer to
 the 'Startup failure' section of the IDLE doc.
 
-bpo-37039: Adjust "Zoom Height" to individual screens by momemtarily
+bpo-37039: Adjust "Zoom Height" to individual screens by momentarily
 maximizing the window on first use with a particular screen.  Changing
 screen settings may invalidate the saved height.  While a window is
 maximized, "Zoom Height" has no effect.
index 8912f39704999bbebd4e2df3eab635f677c5b3aa..42c3506699ba07cad8184538aea5b6c3dc490eb1 100644 (file)
@@ -68,7 +68,7 @@ pyshell.py        # Start IDLE, manage shell, complete editor window
 query.py          # Query user for information
 redirector.py     # Intercept widget subcommands (for percolator) (nim).
 replace.py        # Search and replace pattern in text.
-rpc.py            # Commuicate between idle and user processes (nim).
+rpc.py            # Communicate between idle and user processes (nim).
 rstrip.py         # Strip trailing whitespace.
 run.py            # Manage user code execution subprocess.
 runscript.py      # Check and run user code.
@@ -97,7 +97,7 @@ Text
 CREDITS.txt  # not maintained, displayed by About IDLE
 HISTORY.txt  # NEWS up to July 2001
 NEWS.txt     # commits, displayed by About IDLE
-README.txt   # this file, displeyed by About IDLE
+README.txt   # this file, displayed by About IDLE
 TODO.txt     # needs review
 extend.txt   # about writing extensions
 help.html    # copy of idle.html in docs, displayed by IDLE Help
@@ -166,7 +166,7 @@ Shell  # pyshell
 
 Debug (Shell only)
   Go to File/Line
-  debugger         # debugger, debugger_r, PyShell.toggle_debuger
+  debugger         # debugger, debugger_r, PyShell.toggle_debugger
   Stack Viewer     # stackviewer, PyShell.open_stack_viewer
   Auto-open Stack Viewer  # stackviewer
 
index bba17d34938d271b847e1439c60528f508756fe3..df216582fe60930c27732c8ab52c32d5ec83511a 100644 (file)
@@ -1793,7 +1793,7 @@ class GenPage(Frame):
         """Return frame of widgets for General tab.
 
         Enable users to provisionally change general options. Function
-        load_general_cfg intializes tk variables and helplist using
+        load_general_cfg initializes tk variables and helplist using
         idleConf.  Radiobuttons startup_shell_on and startup_editor_on
         set var startup_edit. Radiobuttons save_ask_on and save_auto_on
         set var autosave. Entry boxes win_width_int and win_height_int
index 56f53a0f2fb9912925b3c566aab9d412c8864d95..ad44a96a9de2c0fb82f31d515d74aa9ff6119cb0 100644 (file)
@@ -39,7 +39,7 @@ class History:
         return "break"
 
     def fetch(self, reverse):
-        '''Fetch statememt and replace current line in text widget.
+        '''Fetch statement and replace current line in text widget.
 
         Set prefix and pointer as needed for successive fetches.
         Reset them to None, None when returning to the start line.
index 479b84a216b02c26ed41622483bf9ee1d2177fea..f7154e6ded9574e14e9389f664090a3155de4514 100644 (file)
@@ -206,8 +206,8 @@ class PyParseTest(unittest.TestCase):
                                            'openbracket', 'bracketing'])
         tests = (
             TestInfo('', 0, 0, '', None, ((0, 0),)),
-            TestInfo("'''This is a multiline continutation docstring.\n\n",
-                     0, 49, "'", None, ((0, 0), (0, 1), (49, 0))),
+            TestInfo("'''This is a multiline continuation docstring.\n\n",
+                     0, 48, "'", None, ((0, 0), (0, 1), (48, 0))),
             TestInfo(' # Comment\\\n',
                      0, 12, '', None, ((0, 0), (1, 1), (12, 0))),
             # A comment without a space is a special case
index 81e7f539803c08e3737056737d6d9ffbd4615542..feb57cbb74056410868c3e8a83457130c5468342 100644 (file)
@@ -575,7 +575,7 @@ class Parser:
         return code[i:j]
 
     def is_block_opener(self):
-        "Return True if the last interesting statemtent opens a block."
+        "Return True if the last interesting statement opens a block."
         self._study2()
         return self.lastch == ':'