From b4e9eaf6ff29c9df4cc2f60e4f125f4e65353456 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Sun, 19 Oct 2014 18:04:38 +0300 Subject: Issue #22186: Fix typos in Lib/. Patch by F?vry Thibault. --- Lib/idlelib/idle_test/htest.py | 2 +- Lib/idlelib/idle_test/mock_tk.py | 2 +- Lib/idlelib/idle_test/test_autoexpand.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Lib/idlelib/idle_test') diff --git a/Lib/idlelib/idle_test/htest.py b/Lib/idlelib/idle_test/htest.py index d673fe4ea8..1fe5ad4a51 100644 --- a/Lib/idlelib/idle_test/htest.py +++ b/Lib/idlelib/idle_test/htest.py @@ -171,7 +171,7 @@ GetKeysDialog_spec = { " is invalid.\n" "No modifier key is invalid.\n" "Shift key with [a-z],[0-9], function key, move key, tab, space" - "is invalid.\nNo validitity checking if advanced key binding " + "is invalid.\nNo validity checking if advanced key binding " "entry is used." } diff --git a/Lib/idlelib/idle_test/mock_tk.py b/Lib/idlelib/idle_test/mock_tk.py index b9fd5216b9..a8030f4f5c 100644 --- a/Lib/idlelib/idle_test/mock_tk.py +++ b/Lib/idlelib/idle_test/mock_tk.py @@ -116,7 +116,7 @@ class Text: """Return a (line, char) tuple of int indexes into self.data. This implements .index without converting the result back to a string. - The result is contrained by the number of lines and linelengths of + The result is constrained by the number of lines and linelengths of self.data. For many indexes, the result is initially (1, 0). The input index may have any of several possible forms: diff --git a/Lib/idlelib/idle_test/test_autoexpand.py b/Lib/idlelib/idle_test/test_autoexpand.py index 7f112a0025..7ca941ec29 100644 --- a/Lib/idlelib/idle_test/test_autoexpand.py +++ b/Lib/idlelib/idle_test/test_autoexpand.py @@ -78,7 +78,7 @@ class AutoExpandTest(unittest.TestCase): equal(previous(), 'a') def test_after_only(self): - # Also add punctuation 'noise' that shoud be ignored. + # Also add punctuation 'noise' that should be ignored. text = self.text previous = self.auto_expand.getprevword expand = self.auto_expand.expand_word_event -- cgit v1.2.1