Skip to content

Commit b1d867f

Browse files
committed
Issue #27076: Doc, comment and test function name spelling fixes
Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
1 parent 5db0b33 commit b1d867f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+51
-50
lines changed

Demo/tkinter/matt/canvas-with-scrollbars.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from Tkinter import *
22

3-
# This example program creates a scroling canvas, and demonstrates
4-
# how to tie scrollbars and canvses together. The mechanism
3+
# This example program creates a scrolling canvas, and demonstrates
4+
# how to tie scrollbars and canvases together. The mechanism
55
# is analogus for listboxes and other widgets with
66
# "xscroll" and "yscroll" configuration options.
77

Lib/_osx_support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def _find_appropriate_compiler(_config_vars):
151151
# can only be found inside Xcode.app if the "Command Line Tools"
152152
# are not installed.
153153
#
154-
# Futhermore, the compiler that can be used varies between
154+
# Furthermore, the compiler that can be used varies between
155155
# Xcode releases. Up to Xcode 4 it was possible to use 'gcc-4.2'
156156
# as the compiler, after that 'clang' should be used because
157157
# gcc-4.2 is either not present, or a copy of 'llvm-gcc' that

Lib/bsddb/test/test_lock.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test01_simple(self):
4141
print "locker ID: %s" % anID
4242
lock = self.env.lock_get(anID, "some locked thing", db.DB_LOCK_WRITE)
4343
if verbose:
44-
print "Aquired lock: %s" % lock
44+
print "Acquired lock: %s" % lock
4545
self.env.lock_put(lock)
4646
if verbose:
4747
print "Released lock: %s" % lock
@@ -158,7 +158,7 @@ def theThread(self, lockType):
158158
for i in xrange(1000) :
159159
lock = self.env.lock_get(anID, "some locked thing", lockType)
160160
if verbose:
161-
print "%s: Aquired %s lock: %s" % (name, lt, lock)
161+
print "%s: Acquired %s lock: %s" % (name, lt, lock)
162162

163163
self.env.lock_put(lock)
164164
if verbose:

Lib/cgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def parse(fp=None, environ=os.environ, keep_blank_values=0, strict_parsing=0):
175175

176176

177177
# parse query string function called from urlparse,
178-
# this is done in order to maintain backward compatiblity.
178+
# this is done in order to maintain backward compatibility.
179179

180180
def parse_qs(qs, keep_blank_values=0, strict_parsing=0):
181181
"""Parse a query given as a string argument."""

Lib/collections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def namedtuple(typename, field_names, verbose=False, rename=False):
314314
>>> x, y = p # unpack like a regular tuple
315315
>>> x, y
316316
(11, 22)
317-
>>> p.x + p.y # fields also accessable by name
317+
>>> p.x + p.y # fields also accessible by name
318318
33
319319
>>> d = p._asdict() # convert to a dictionary
320320
>>> d['x']

Lib/distutils/msvc9compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
# A map keyed by get_platform() return values to values accepted by
5656
# 'vcvarsall.bat'. Note a cross-compile may combine these (eg, 'x86_amd64' is
57-
# the param to cross-compile on x86 targetting amd64.)
57+
# the param to cross-compile on x86 targeting amd64.)
5858
PLAT_TO_VCVARS = {
5959
'win32' : 'x86',
6060
'win-amd64' : 'amd64',

Lib/distutils/tests/test_unixccompiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def gcv(v):
135135
self.assertEqual(self.cc.linker_so[0], 'my_cc')
136136

137137
@unittest.skipUnless(sys.platform == 'darwin', 'test only relevant for OS X')
138-
def test_osx_explict_ldshared(self):
138+
def test_osx_explicit_ldshared(self):
139139
# Issue #18080:
140140
# ensure that setting CC env variable does not change
141141
# explicit LDSHARED setting for linker

Lib/email/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __init__(self, *args, **kws):
2323
textual representation of the message.
2424
2525
The string must be formatted as a block of RFC 2822 headers and header
26-
continuation lines, optionally preceeded by a `Unix-from' header. The
26+
continuation lines, optionally preceded by a `Unix-from' header. The
2727
header block is terminated either by the end of the string or by a
2828
blank line.
2929

Lib/encodings/utf_32.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def reset(self):
6868
self.decoder = None
6969

7070
def getstate(self):
71-
# additonal state info from the base class must be None here,
71+
# additional state info from the base class must be None here,
7272
# as it isn't passed along to the caller
7373
state = codecs.BufferedIncrementalDecoder.getstate(self)[0]
7474
# additional state info we pass to the caller:

Lib/lib-tk/ttk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ def start(self, interval=None):
10141014
"""Begin autoincrement mode: schedules a recurring timer event
10151015
that calls method step every interval milliseconds.
10161016
1017-
interval defaults to 50 milliseconds (20 steps/second) if ommited."""
1017+
interval defaults to 50 milliseconds (20 steps/second) if omitted."""
10181018
self.tk.call(self._w, "start", interval)
10191019

10201020

0 commit comments

Comments
 (0)