]> granicus.if.org Git - python/commitdiff
[3.6] Fix miscellaneous typos in idlelib (GH-4275) (#4291)
authorTerry Jan Reedy <tjreedy@udel.edu>
Mon, 6 Nov 2017 01:30:06 +0000 (20:30 -0500)
committerGitHub <noreply@github.com>
Mon, 6 Nov 2017 01:30:06 +0000 (20:30 -0500)
Manual partial backport of patch that fixed nearly 50 other files.

Lib/idlelib/NEWS.txt
Lib/idlelib/browser.py
Lib/idlelib/idle_test/test_replace.py
Lib/idlelib/paragraph.py

index eacf3246e022764332438a9e220a5a86d9f94fa9..7dea7ef147f8885c259fa74e5c78a0faf2bc256d 100644 (file)
@@ -81,7 +81,7 @@ extension.cfg.  All take effect as soon as one clicks Apply or Ok.
 '<<zoom-height>>'.  Any (global) customizations made before 3.6.3 will
 not affect their keyset-specific customization after 3.6.3. and vice
 versa.
-  Inital patch by Charles Wohlganger, revised by Terry Jan Reedy.
+  Initial patch by Charles Wohlganger, revised by Terry Jan Reedy.
 
 bpo-31051:  Rearrange condigdialog General tab.
 Sort non-Help options into Window (Shell+Editor) and Editor (only).
index 090eb2876ea4144a690526ad5c985adc6d4dfd2f..b45c1096afa7709677759e69452a617b4c3f8090 100644 (file)
@@ -58,7 +58,7 @@ class ModuleBrowser:
     """Browse module classes and functions in IDLE.
     """
     # This class is also the base class for pathbrowser.PathBrowser.
-    # Init and close are inherited, other methods are overriden.
+    # Init and close are inherited, other methods are overridden.
     # PathBrowser.__init__ does not call __init__ below.
 
     def __init__(self, master, path, *, _htest=False, _utest=False):
index 2ecbd34168c54e8196dc7cedaba792c778c4dba0..df76dec3e6276d28aec99c99e3e00ab9e33c4f2e 100644 (file)
@@ -74,14 +74,14 @@ class ReplaceDialogTest(unittest.TestCase):
         replace()
         equal(text.get('1.8', '1.12'), 'asdf')
 
-        # dont "match word" case
+        # don't "match word" case
         text.mark_set('insert', '1.0')
         pv.set('is')
         rv.set('hello')
         replace()
         equal(text.get('1.2', '1.7'), 'hello')
 
-        # dont "match case" case
+        # don't "match case" case
         pv.set('string')
         rv.set('world')
         replace()
index cf8dfdb641f69dcf374ee58b8c29e3fe9fa470df..1270115a44ce44be308dc82217845728a892eaf0 100644 (file)
@@ -158,7 +158,7 @@ def reformat_comment(data, limit, comment_header):
     newdata = reformat_paragraph(data, format_width)
     # re-split and re-insert the comment header.
     newdata = newdata.split("\n")
-    # If the block ends in a \n, we dont want the comment prefix
+    # If the block ends in a \n, we don't want the comment prefix
     # inserted after it. (Im not sure it makes sense to reformat a
     # comment block that is not made of complete lines, but whatever!)
     # Can't think of a clean solution, so we hack away