[Python-checkins] IDLE: Fix typos in docs and comments (GH-13749)

Terry Jan Reedy webhook-mailer at python.org
Mon Jun 3 00:21:20 EDT 2019


https://github.com/python/cpython/commit/d9677f36fe486e86bb86f2cd59cb7fc3804bdac1
commit: d9677f36fe486e86bb86f2cd59cb7fc3804bdac1
branch: master
author: Xtreak <tir.karthi at gmail.com>
committer: Terry Jan Reedy <tjreedy at udel.edu>
date: 2019-06-03T00:21:15-04:00
summary:

IDLE: Fix typos in docs and comments (GH-13749)

files:
M Lib/idlelib/config.py
M Lib/idlelib/configdialog.py
M Lib/idlelib/delegator.py
M Lib/idlelib/editor.py
M Lib/idlelib/idle_test/htest.py
M Lib/idlelib/idle_test/mock_tk.py
M Lib/idlelib/idle_test/test_pyparse.py
M Lib/idlelib/search.py
M Lib/idlelib/searchbase.py
M Lib/idlelib/squeezer.py
M Lib/idlelib/undo.py

diff --git a/Lib/idlelib/config.py b/Lib/idlelib/config.py
index aa94d6535be6..12113c19c086 100644
--- a/Lib/idlelib/config.py
+++ b/Lib/idlelib/config.py
@@ -12,7 +12,7 @@
 there are  separate dicts for default and user values.  Each has
 config-type keys 'main', 'extensions', 'highlight', and 'keys'.  The
 value for each key is a ConfigParser instance that maps section and item
-to values.  For 'main' and 'extenstons', user values override
+to values.  For 'main' and 'extensions', user values override
 default values.  For 'highlight' and 'keys', user sections augment the
 default sections (and must, therefore, have distinct names).
 
diff --git a/Lib/idlelib/configdialog.py b/Lib/idlelib/configdialog.py
index 4aaec1321f7d..807ff60413d1 100644
--- a/Lib/idlelib/configdialog.py
+++ b/Lib/idlelib/configdialog.py
@@ -199,7 +199,7 @@ def destroy(self):
     def help(self):
         """Create textview for config dialog help.
 
-        Attrbutes accessed:
+        Attributes accessed:
             note
 
         Methods:
diff --git a/Lib/idlelib/delegator.py b/Lib/idlelib/delegator.py
index dc2a1aaeeab7..55c95da8532f 100644
--- a/Lib/idlelib/delegator.py
+++ b/Lib/idlelib/delegator.py
@@ -14,7 +14,7 @@ def __getattr__(self, name):
 
     def resetcache(self):
         "Removes added attributes while leaving original attributes."
-        # Function is really about resetting delagator dict
+        # Function is really about resetting delegator dict
         # to original state.  Cache is just a means
         for key in self.__cache:
             try:
diff --git a/Lib/idlelib/editor.py b/Lib/idlelib/editor.py
index 89b7239a96ea..a6674728cd93 100644
--- a/Lib/idlelib/editor.py
+++ b/Lib/idlelib/editor.py
@@ -315,7 +315,7 @@ def __init__(self, flist=None, filename=None, key=None, root=None):
                   self.CodeContext(self).toggle_code_context_event)
 
     def _filename_to_unicode(self, filename):
-        """Return filename as BMP unicode so diplayable in Tk."""
+        """Return filename as BMP unicode so displayable in Tk."""
         # Decode bytes to unicode.
         if isinstance(filename, bytes):
             try:
diff --git a/Lib/idlelib/idle_test/htest.py b/Lib/idlelib/idle_test/htest.py
index 429081f7ef25..6e3398ed0bc8 100644
--- a/Lib/idlelib/idle_test/htest.py
+++ b/Lib/idlelib/idle_test/htest.py
@@ -12,7 +12,7 @@
 The first parameter of X must be 'parent'.  When called, the parent
 argument will be the root window.  X must create a child Toplevel
 window (or subclass thereof).  The Toplevel may be a test widget or
-dialog, in which case the callable is the corresonding class.  Or the
+dialog, in which case the callable is the corresponding class.  Or the
 Toplevel may contain the widget to be tested or set up a context in
 which a test widget is invoked.  In this latter case, the callable is a
 wrapper function that sets up the Toplevel and other objects.  Wrapper
diff --git a/Lib/idlelib/idle_test/mock_tk.py b/Lib/idlelib/idle_test/mock_tk.py
index a54f51f1949c..576f7d5d609e 100644
--- a/Lib/idlelib/idle_test/mock_tk.py
+++ b/Lib/idlelib/idle_test/mock_tk.py
@@ -37,7 +37,7 @@ class Mbox_func:
     """Generic mock for messagebox functions, which all have the same signature.
 
     Instead of displaying a message box, the mock's call method saves the
-    arguments as instance attributes, which test functions can then examime.
+    arguments as instance attributes, which test functions can then examine.
     The test can set the result returned to ask function
     """
     def __init__(self, result=None):
diff --git a/Lib/idlelib/idle_test/test_pyparse.py b/Lib/idlelib/idle_test/test_pyparse.py
index 0534301b3610..479b84a216b0 100644
--- a/Lib/idlelib/idle_test/test_pyparse.py
+++ b/Lib/idlelib/idle_test/test_pyparse.py
@@ -160,7 +160,7 @@ def test_study1(self):
             TestInfo('\n   def function1(self, a,\n', [0, 1, 2], BRACKET),
             TestInfo('())\n', [0, 1], NONE),                    # Extra closer.
             TestInfo(')(\n', [0, 1], BRACKET),                  # Extra closer.
-            # For the mismatched example, it doesn't look like contination.
+            # For the mismatched example, it doesn't look like continuation.
             TestInfo('{)(]\n', [0, 1], NONE),                   # Mismatched.
             )
 
diff --git a/Lib/idlelib/search.py b/Lib/idlelib/search.py
index 5bbe9d6b5dc8..b35f3b59c3d2 100644
--- a/Lib/idlelib/search.py
+++ b/Lib/idlelib/search.py
@@ -80,7 +80,7 @@ def find_again(self, text):
         If no search was previously run, open a new search dialog.  In
         this case, no search is done.
 
-        If a seach was previously run, the search dialog won't be
+        If a search was previously run, the search dialog won't be
         shown and the options from the previous search (including the
         search pattern) will be used to find the next occurrence
         of the pattern.  Next is relative based on direction.
diff --git a/Lib/idlelib/searchbase.py b/Lib/idlelib/searchbase.py
index 74ba8538512b..4ed94f186b04 100644
--- a/Lib/idlelib/searchbase.py
+++ b/Lib/idlelib/searchbase.py
@@ -36,7 +36,7 @@ def __init__(self, root, engine):
         text (Text searched): set in open(), only used in subclasses().
         ent (ry): created in make_entry() called from create_entry().
         row (of grid): 0 in create_widgets(), +1 in make_entry/frame().
-        default_command: set in subclasses, used in create_widgers().
+        default_command: set in subclasses, used in create_widgets().
 
         title (of dialog): class attribute, override in subclasses.
         icon (of dialog): ditto, use unclear if cannot minimize dialog.
diff --git a/Lib/idlelib/squeezer.py b/Lib/idlelib/squeezer.py
index 869498d753a2..032401f2abc7 100644
--- a/Lib/idlelib/squeezer.py
+++ b/Lib/idlelib/squeezer.py
@@ -6,7 +6,7 @@
 completely unusable.
 
 This extension will automatically replace long texts with a small button.
-Double-cliking this button will remove it and insert the original text instead.
+Double-clicking this button will remove it and insert the original text instead.
 Middle-clicking will copy the text to the clipboard. Right-clicking will open
 the text in a separate viewing window.
 
diff --git a/Lib/idlelib/undo.py b/Lib/idlelib/undo.py
index f048994b7d15..85ecffecb4cb 100644
--- a/Lib/idlelib/undo.py
+++ b/Lib/idlelib/undo.py
@@ -2,7 +2,7 @@
 
 from idlelib.delegator import Delegator
 
-# tkintter import not needed because module does not create widgets,
+# tkinter import not needed because module does not create widgets,
 # although many methods operate on text widget arguments.
 
 #$ event <<redo>>



More information about the Python-checkins mailing list