]> granicus.if.org Git - python/commitdiff
IDLE: Fix typos in docs and comments (GH-13749)
authorXtreak <tir.karthi@gmail.com>
Mon, 3 Jun 2019 04:21:15 +0000 (09:51 +0530)
committerTerry Jan Reedy <tjreedy@udel.edu>
Mon, 3 Jun 2019 04:21:15 +0000 (00:21 -0400)
Lib/idlelib/config.py
Lib/idlelib/configdialog.py
Lib/idlelib/delegator.py
Lib/idlelib/editor.py
Lib/idlelib/idle_test/htest.py
Lib/idlelib/idle_test/mock_tk.py
Lib/idlelib/idle_test/test_pyparse.py
Lib/idlelib/search.py
Lib/idlelib/searchbase.py
Lib/idlelib/squeezer.py
Lib/idlelib/undo.py

index aa94d6535be6bbb7283ea524489b755e5aab40de..12113c19c08672a9d755dc5a4086c472d0e3b74e 100644 (file)
@@ -12,7 +12,7 @@ database keys are tuples (config-type, section, item).  As implemented,
 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).
 
index 4aaec1321f7d68792c78dd78ef5dfee91cc805b6..807ff60413d1b0fcade988af3ba83f20abd1f4cb 100644 (file)
@@ -199,7 +199,7 @@ class ConfigDialog(Toplevel):
     def help(self):
         """Create textview for config dialog help.
 
-        Attrbutes accessed:
+        Attributes accessed:
             note
 
         Methods:
index dc2a1aaeeab74eedf6a677da1b5c44a088714bb0..55c95da8532f47244d57a77e20fc7376502cb388 100644 (file)
@@ -14,7 +14,7 @@ class Delegator:
 
     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:
index 89b7239a96ea0e82e9a29a8de2b4964ba65684f1..a6674728cd9374c5e1182cc811c6faf1346bf1ca 100644 (file)
@@ -315,7 +315,7 @@ class EditorWindow(object):
                   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:
index 429081f7ef25a8a423c8434bbdcf4fc071376a54..6e3398ed0bc8dbbabdce6d32b0e1b21a1a5d5029 100644 (file)
@@ -12,7 +12,7 @@ or function) whose .__name__ attribute is also X (the usual situation).
 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
index a54f51f1949c08e5a852ff2f9a777446f6d346ca..576f7d5d609e4dbf79b4160fbc58dc8009874174 100644 (file)
@@ -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):
index 0534301b36102f0024678bfeb0f6b621c78b70c1..479b84a216b02c26ed41622483bf9ee1d2177fea 100644 (file)
@@ -160,7 +160,7 @@ class PyParseTest(unittest.TestCase):
             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.
             )
 
index 5bbe9d6b5dc8a16d3369cdf3be791ba47d7e3102..b35f3b59c3d2e8f26ed5c2172e7290f84601371a 100644 (file)
@@ -80,7 +80,7 @@ class SearchDialog(SearchDialogBase):
         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.
index 74ba8538512b9d3ccb989915078dd6dfc231fe02..4ed94f186b048d16f33e873cd6014a595892aff4 100644 (file)
@@ -36,7 +36,7 @@ class SearchDialogBase:
         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.
index 869498d753a2cd97476fbb759b6e3e676e1996fa..032401f2abc738cb1ba3525b71682a2154074f5c 100644 (file)
@@ -6,7 +6,7 @@ Worse, this can cause IDLE to become very slow, even to the point of being
 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.
 
index f048994b7d15c3a80239155360e415e64775d800..85ecffecb4cbcbf98004ca24a38ebe7052f5756f 100644 (file)
@@ -2,7 +2,7 @@ import string
 
 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>>