Skip to content

Commit 1ce5716

Browse files
committed
Issue #27076: Doc, comment and tests spelling fixes
Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
1 parent f8fc94f commit 1ce5716

Some content is hidden

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

67 files changed

+241
-241
lines changed

Doc/glossary.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Glossary
177177
A buffer is considered contiguous exactly if it is either
178178
*C-contiguous* or *Fortran contiguous*. Zero-dimensional buffers are
179179
C and Fortran contiguous. In one-dimensional arrays, the items
180-
must be layed out in memory next to each other, in order of
180+
must be laid out in memory next to each other, in order of
181181
increasing indexes starting from zero. In multidimensional
182182
C-contiguous arrays, the last index varies the fastest when
183183
visiting items in order of memory address. However, in

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/asyncio/sslproto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ def _on_handshake_complete(self, handshake_exc):
603603
self._wakeup_waiter()
604604
self._session_established = True
605605
# In case transport.write() was already called. Don't call
606-
# immediatly _process_write_backlog(), but schedule it:
606+
# immediately _process_write_backlog(), but schedule it:
607607
# _on_handshake_complete() can be called indirectly from
608608
# _process_write_backlog(), and _process_write_backlog() is not
609609
# reentrant.

Lib/cgi.py

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

185185

186186
# parse query string function called from urlparse,
187-
# this is done in order to maintain backward compatiblity.
187+
# this is done in order to maintain backward compatibility.
188188

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

Lib/collections/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def namedtuple(typename, field_names, verbose=False, rename=False):
365365
>>> x, y = p # unpack like a regular tuple
366366
>>> x, y
367367
(11, 22)
368-
>>> p.x + p.y # fields also accessable by name
368+
>>> p.x + p.y # fields also accessible by name
369369
33
370370
>>> d = p._asdict() # convert to a dictionary
371371
>>> d['x']

Lib/dis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def _get_instructions_bytes(code, varnames=None, names=None, constants=None,
287287
argrepr = ''
288288
if arg is not None:
289289
# Set argval to the dereferenced value of the argument when
290-
# availabe, and argrepr to the string representation of argval.
290+
# available, and argrepr to the string representation of argval.
291291
# _disassemble_bytes needs the string repr of the
292292
# raw name index for LOAD_GLOBAL, LOAD_CONST, etc.
293293
argval = arg

Lib/distutils/msvc9compiler.py

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

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

Lib/distutils/tests/test_unixccompiler.py

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

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

Lib/email/_header_value_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2872,7 +2872,7 @@ def parse_content_type_header(value):
28722872
_find_mime_parameters(ctype, value)
28732873
return ctype
28742874
ctype.append(token)
2875-
# XXX: If we really want to follow the formal grammer we should make
2875+
# XXX: If we really want to follow the formal grammar we should make
28762876
# mantype and subtype specialized TokenLists here. Probably not worth it.
28772877
if not value or value[0] != '/':
28782878
ctype.defects.append(errors.InvalidHeaderDefect(

Lib/email/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __init__(self, _class=None, *, policy=compat32):
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
@@ -87,7 +87,7 @@ def __init__(self, *args, **kw):
8787
textual representation of the message.
8888
8989
The input must be formatted as a block of RFC 2822 headers and header
90-
continuation lines, optionally preceeded by a `Unix-from' header. The
90+
continuation lines, optionally preceded by a `Unix-from' header. The
9191
header block is terminated either by the end of the input or by a
9292
blank line.
9393

0 commit comments

Comments
 (0)