summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter
diff options
context:
space:
mode:
authorMike <mehanig@gmail.com>2017-12-14 11:04:53 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2017-12-14 11:04:53 (GMT)
commit53f7a7c2814fbfd8a29200926601a32fa48bacb3 (patch)
tree4f74255b4cf6af46480b3e48bdc2411dfede9e15 /Lib/tkinter
parent5364b5cd7571f2dfa75acd37b388c14ac33fef73 (diff)
downloadcpython-53f7a7c2814fbfd8a29200926601a32fa48bacb3.zip
cpython-53f7a7c2814fbfd8a29200926601a32fa48bacb3.tar.gz
cpython-53f7a7c2814fbfd8a29200926601a32fa48bacb3.tar.bz2
bpo-32297: Few misspellings found in Python source code comments. (#4803)
* Fix multiple typos in code comments * Add spacing in comments (test_logging.py, test_math.py) * Fix spaces at the beginning of comments in test_logging.py
Diffstat (limited to 'Lib/tkinter')
-rw-r--r--Lib/tkinter/test/test_ttk/test_functions.py4
-rw-r--r--Lib/tkinter/ttk.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/tkinter/test/test_ttk/test_functions.py b/Lib/tkinter/test/test_ttk/test_functions.py
index a1b7cdf..f8e69a9 100644
--- a/Lib/tkinter/test/test_ttk/test_functions.py
+++ b/Lib/tkinter/test/test_ttk/test_functions.py
@@ -149,7 +149,7 @@ class InternalFunctionsTest(unittest.TestCase):
# but when passing a single state, it can be anything
valid = {'opt': [[1, 'value']]}
self.assertEqual(ttk._format_mapdict(valid), ('-opt', '1 value'))
- # special attention to single states which evalute to False
+ # special attention to single states which evaluate to False
for stateval in (None, 0, False, '', set()): # just some samples
valid = {'opt': [(stateval, 'value')]}
self.assertEqual(ttk._format_mapdict(valid),
@@ -251,7 +251,7 @@ class InternalFunctionsTest(unittest.TestCase):
self.assertEqual(ttk._format_layoutlist([])[0], '')
# _format_layoutlist always expects the second item (in every item)
- # to act like a dict (except when the value evalutes to False).
+ # to act like a dict (except when the value evaluates to False).
self.assertRaises(AttributeError,
ttk._format_layoutlist, [('a', 'b')])
diff --git a/Lib/tkinter/ttk.py b/Lib/tkinter/ttk.py
index 05c7364..e6c90ce 100644
--- a/Lib/tkinter/ttk.py
+++ b/Lib/tkinter/ttk.py
@@ -83,7 +83,7 @@ def _mapdict_values(items):
# ['active selected', 'grey', 'focus', [1, 2, 3, 4]]
opt_val = []
for *state, val in items:
- # hacks for bakward compatibility
+ # hacks for backward compatibility
state[0] # raise IndexError if empty
if len(state) == 1:
# if it is empty (something that evaluates to False), then