Skip to content

Commit e26da7c

Browse files
committed
Issue #27171: Fix typos in documentation, comments, and test function names
1 parent 1b207c5 commit e26da7c

30 files changed

+51
-51
lines changed

Include/pymacconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
* Therefore surpress the toolbox-glue in 64-bit mode.
6767
*/
6868

69-
/* In 64-bit mode setpgrp always has no argments, in 32-bit
69+
/* In 64-bit mode setpgrp always has no arguments, in 32-bit
7070
* mode that depends on the compilation environment
7171
*/
7272
# undef SETPGRP_HAVE_ARG

Lib/_osx_support.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def _find_appropriate_compiler(_config_vars):
157157
# gcc-4.2 is either not present, or a copy of 'llvm-gcc' that
158158
# miscompiles Python.
159159

160-
# skip checks if the compiler was overriden with a CC env variable
160+
# skip checks if the compiler was overridden with a CC env variable
161161
if 'CC' in os.environ:
162162
return _config_vars
163163

@@ -193,7 +193,7 @@ def _find_appropriate_compiler(_config_vars):
193193
if cc != oldcc:
194194
# Found a replacement compiler.
195195
# Modify config vars using new compiler, if not already explicitly
196-
# overriden by an env variable, preserving additional arguments.
196+
# overridden by an env variable, preserving additional arguments.
197197
for cv in _COMPILER_CONFIG_VARS:
198198
if cv in _config_vars and cv not in os.environ:
199199
cv_split = _config_vars[cv].split()
@@ -207,7 +207,7 @@ def _remove_universal_flags(_config_vars):
207207
"""Remove all universal build arguments from config vars"""
208208

209209
for cv in _UNIVERSAL_CONFIG_VARS:
210-
# Do not alter a config var explicitly overriden by env var
210+
# Do not alter a config var explicitly overridden by env var
211211
if cv in _config_vars and cv not in os.environ:
212212
flags = _config_vars[cv]
213213
flags = re.sub('-arch\s+\w+\s', ' ', flags, re.ASCII)
@@ -228,7 +228,7 @@ def _remove_unsupported_archs(_config_vars):
228228
# build extensions on OSX 10.7 and later with the prebuilt
229229
# 32-bit installer on the python.org website.
230230

231-
# skip checks if the compiler was overriden with a CC env variable
231+
# skip checks if the compiler was overridden with a CC env variable
232232
if 'CC' in os.environ:
233233
return _config_vars
234234

@@ -244,7 +244,7 @@ def _remove_unsupported_archs(_config_vars):
244244
# across Xcode and compiler versions, there is no reliable way
245245
# to be sure why it failed. Assume here it was due to lack of
246246
# PPC support and remove the related '-arch' flags from each
247-
# config variables not explicitly overriden by an environment
247+
# config variables not explicitly overridden by an environment
248248
# variable. If the error was for some other reason, we hope the
249249
# failure will show up again when trying to compile an extension
250250
# module.
@@ -292,7 +292,7 @@ def _check_for_unavailable_sdk(_config_vars):
292292
sdk = m.group(1)
293293
if not os.path.exists(sdk):
294294
for cv in _UNIVERSAL_CONFIG_VARS:
295-
# Do not alter a config var explicitly overriden by env var
295+
# Do not alter a config var explicitly overridden by env var
296296
if cv in _config_vars and cv not in os.environ:
297297
flags = _config_vars[cv]
298298
flags = re.sub(r'-isysroot\s+\S+(?:\s|$)', ' ', flags)

Lib/_pydecimal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ def __neg__(self, context=None):
11021102
def __pos__(self, context=None):
11031103
"""Returns a copy, unless it is a sNaN.
11041104
1105-
Rounds the number (if more then precision digits)
1105+
Rounds the number (if more than precision digits)
11061106
"""
11071107
if self._is_special:
11081108
ans = self._check_nans(context=context)

Lib/_pyio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ def _read_unlocked(self, n=None):
10431043
break
10441044
avail += len(chunk)
10451045
chunks.append(chunk)
1046-
# n is more then avail only when an EOF occurred or when
1046+
# n is more than avail only when an EOF occurred or when
10471047
# read() would have blocked.
10481048
n = min(n, avail)
10491049
out = b"".join(chunks)

Lib/distutils/tests/test_build_ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def test_get_source_files(self):
279279

280280
def test_compiler_option(self):
281281
# cmd.compiler is an option and
282-
# should not be overriden by a compiler instance
282+
# should not be overridden by a compiler instance
283283
# when the command is run
284284
dist = Distribution()
285285
cmd = self.build_ext(dist)

Lib/idlelib/AutoComplete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""AutoComplete.py - An IDLE extension for automatically completing names.
22
3-
This extension can complete either attribute names of file names. It can pop
3+
This extension can complete either attribute names or file names. It can pop
44
a window with all available names, for the user to select from.
55
"""
66
import os

Lib/idlelib/MultiCall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def __del__(self):
111111
raise
112112

113113
# An int in range(1 << len(_modifiers)) represents a combination of modifiers
114-
# (if the least significent bit is on, _modifiers[0] is on, and so on).
114+
# (if the least significant bit is on, _modifiers[0] is on, and so on).
115115
# _state_subsets gives for each combination of modifiers, or *state*,
116116
# a list of the states which are a subset of it. This list is ordered by the
117117
# number of modifiers is the state - the most specific state comes first.

Lib/idlelib/rpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""RPC Implemention, originally written for the Python Idle IDE
1+
"""RPC Implementation, originally written for the Python Idle IDE
22
33
For security reasons, GvR requested that Idle's Python execution server process
44
connect to the Idle process, which listens for the connection. Since Idle has

Lib/pathlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ def _format_parsed_parts(cls, drv, root, parts):
674674
return cls._flavour.join(parts)
675675

676676
def _init(self):
677-
# Overriden in concrete Path
677+
# Overridden in concrete Path
678678
pass
679679

680680
def _make_child(self, args):

Lib/pdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
directory, it is read in and executed as if it had been typed at the
5353
debugger prompt. This is particularly useful for aliases. If both
5454
files exist, the one in the home directory is read first and aliases
55-
defined there can be overriden by the local file.
55+
defined there can be overridden by the local file.
5656
5757
Aside from aliases, the debugger is not directly programmable; but it
5858
is implemented as a class from which you can derive your own debugger

0 commit comments

Comments
 (0)