Skip to content

Commit d432fa4

Browse files
vstinneralgonell
andauthored
[3.13] Fix typos (#123775) (#123866)
Fix typos (#123775) (cherry picked from commit 9017b95) Co-authored-by: algonell <[email protected]>
1 parent 2a40dda commit d432fa4

Some content is hidden

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

42 files changed

+58
-58
lines changed

Android/testbed/app/src/main/c/main_activity.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ JNIEXPORT void JNICALL Java_org_python_testbed_PythonTestRunner_redirectStdioToL
100100
}
101101

102102

103-
// --- Python intialization ----------------------------------------------------
103+
// --- Python initialization ---------------------------------------------------
104104

105105
static PyStatus set_config_string(
106106
JNIEnv *env, PyConfig *config, wchar_t **config_str, jstring value

Lib/enum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def __setitem__(self, key, value):
442442
# accepts iterable as multiple arguments?
443443
value = t(auto_valued)
444444
except TypeError:
445-
# then pass them in singlely
445+
# then pass them in singly
446446
value = t(*auto_valued)
447447
self._member_names[key] = None
448448
if non_auto_store:

Lib/test/decimaltestdata/ddFMA.decTest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1663,7 +1663,7 @@ ddfma375087 fma 1 12345678 1E-33 -> 12345678.00000001 Inexac
16631663
ddfma375088 fma 1 12345678 1E-34 -> 12345678.00000001 Inexact Rounded
16641664
ddfma375089 fma 1 12345678 1E-35 -> 12345678.00000001 Inexact Rounded
16651665

1666-
-- desctructive subtraction (from remainder tests)
1666+
-- destructive subtraction (from remainder tests)
16671667

16681668
-- +++ some of these will be off-by-one remainder vs remainderNear
16691669

Lib/test/decimaltestdata/ddQuantize.decTest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ ddqua520 quantize 1.234 1e359 -> 0E+359 Inexact Rounded
462462
ddqua521 quantize 123.456 1e359 -> 0E+359 Inexact Rounded
463463
ddqua522 quantize 1.234 1e359 -> 0E+359 Inexact Rounded
464464
ddqua523 quantize 123.456 1e359 -> 0E+359 Inexact Rounded
465-
-- next four are "won't fit" overfl
465+
-- next four are "won't fit" overflow
466466
ddqua526 quantize 1.234 1e-299 -> NaN Invalid_operation
467467
ddqua527 quantize 123.456 1e-299 -> NaN Invalid_operation
468468
ddqua528 quantize 1.234 1e-299 -> NaN Invalid_operation

Lib/test/decimaltestdata/ddRemainder.decTest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ ddrem757 remainder 1 sNaN -> NaN Invalid_operation
422422
ddrem758 remainder 1000 sNaN -> NaN Invalid_operation
423423
ddrem759 remainder Inf -sNaN -> -NaN Invalid_operation
424424

425-
-- propaging NaNs
425+
-- propagating NaNs
426426
ddrem760 remainder NaN1 NaN7 -> NaN1
427427
ddrem761 remainder sNaN2 NaN8 -> NaN2 Invalid_operation
428428
ddrem762 remainder NaN3 sNaN9 -> NaN9 Invalid_operation

Lib/test/decimaltestdata/ddRemainderNear.decTest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ ddrmn757 remaindernear 1 sNaN -> NaN Invalid_operation
450450
ddrmn758 remaindernear 1000 sNaN -> NaN Invalid_operation
451451
ddrmn759 remaindernear Inf -sNaN -> -NaN Invalid_operation
452452

453-
-- propaging NaNs
453+
-- propagating NaNs
454454
ddrmn760 remaindernear NaN1 NaN7 -> NaN1
455455
ddrmn761 remaindernear sNaN2 NaN8 -> NaN2 Invalid_operation
456456
ddrmn762 remaindernear NaN3 sNaN9 -> NaN9 Invalid_operation

Lib/test/decimaltestdata/dqRemainder.decTest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ dqrem757 remainder 1 sNaN -> NaN Invalid_operation
418418
dqrem758 remainder 1000 sNaN -> NaN Invalid_operation
419419
dqrem759 remainder Inf -sNaN -> -NaN Invalid_operation
420420

421-
-- propaging NaNs
421+
-- propagating NaNs
422422
dqrem760 remainder NaN1 NaN7 -> NaN1
423423
dqrem761 remainder sNaN2 NaN8 -> NaN2 Invalid_operation
424424
dqrem762 remainder NaN3 sNaN9 -> NaN9 Invalid_operation

Lib/test/decimaltestdata/dqRemainderNear.decTest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ dqrmn757 remaindernear 1 sNaN -> NaN Invalid_operation
450450
dqrmn758 remaindernear 1000 sNaN -> NaN Invalid_operation
451451
dqrmn759 remaindernear Inf -sNaN -> -NaN Invalid_operation
452452

453-
-- propaging NaNs
453+
-- propagating NaNs
454454
dqrmn760 remaindernear NaN1 NaN7 -> NaN1
455455
dqrmn761 remaindernear sNaN2 NaN8 -> NaN2 Invalid_operation
456456
dqrmn762 remaindernear NaN3 sNaN9 -> NaN9 Invalid_operation

Lib/test/decimaltestdata/exp.decTest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ rounding: half_even
2828
maxExponent: 384
2929
minexponent: -383
3030

31-
-- basics (examples in specificiation, etc.)
31+
-- basics (examples in specification, etc.)
3232
expx001 exp -Infinity -> 0
3333
expx002 exp -10 -> 0.0000453999298 Inexact Rounded
3434
expx003 exp -1 -> 0.367879441 Inexact Rounded

Lib/test/decimaltestdata/remainder.decTest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ remx757 remainder 1 sNaN -> NaN Invalid_operation
435435
remx758 remainder 1000 sNaN -> NaN Invalid_operation
436436
remx759 remainder Inf -sNaN -> -NaN Invalid_operation
437437

438-
-- propaging NaNs
438+
-- propagating NaNs
439439
remx760 remainder NaN1 NaN7 -> NaN1
440440
remx761 remainder sNaN2 NaN8 -> NaN2 Invalid_operation
441441
remx762 remainder NaN3 sNaN9 -> NaN9 Invalid_operation

Lib/test/decimaltestdata/remainderNear.decTest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ rmnx758 remaindernear 1000 sNaN -> NaN Invalid_operation
498498
rmnx759 remaindernear Inf sNaN -> NaN Invalid_operation
499499
rmnx760 remaindernear NaN sNaN -> NaN Invalid_operation
500500

501-
-- propaging NaNs
501+
-- propagating NaNs
502502
rmnx761 remaindernear NaN1 NaN7 -> NaN1
503503
rmnx762 remaindernear sNaN2 NaN8 -> NaN2 Invalid_operation
504504
rmnx763 remaindernear NaN3 -sNaN9 -> -NaN9 Invalid_operation

Lib/test/libregrtest/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ def _run_tests(self, selected: TestTuple, tests: TestList | None) -> int:
523523
setup_process()
524524

525525
if (runtests.hunt_refleak is not None) and (not self.num_workers):
526-
# gh-109739: WindowsLoadTracker thread interfers with refleak check
526+
# gh-109739: WindowsLoadTracker thread interferes with refleak check
527527
use_load_tracker = False
528528
else:
529529
# WindowsLoadTracker is only needed on Windows

Lib/test/libregrtest/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ def get_signal_name(exitcode):
784784
# Special Unicode characters
785785
'\uFFFE'
786786
'\uFFFF'
787-
# Match multiple sequential invalid characters for better effiency
787+
# Match multiple sequential invalid characters for better efficiency
788788
']+')
789789

790790
def _sanitize_xml_replace(regs):

Lib/test/mathdata/ieee754.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ nan
5151
>>> INF / INF
5252
nan
5353

54-
However unambigous operations with inf return inf:
54+
However unambiguous operations with inf return inf:
5555
>>> INF * INF
5656
inf
5757
>>> 1.5 * INF

Lib/test/pickletester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2061,7 +2061,7 @@ def persistent_id(self, obj):
20612061
@support.cpython_only
20622062
def test_bad_ext_code(self):
20632063
# This should never happen in normal circumstances, because the type
2064-
# and the value of the extesion code is checked in copyreg.add_extension().
2064+
# and the value of the extension code is checked in copyreg.add_extension().
20652065
key = (__name__, 'MyList')
20662066
def check(code, exc):
20672067
assert key not in copyreg._extension_registry

Lib/test/test_class.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ class C:
916916
C.a
917917
C.a
918918

919-
# destructor shouldn't be able to see inconsisent state
919+
# destructor shouldn't be able to see inconsistent state
920920
C.a = X()
921921
C.a = X()
922922

Lib/test/test_concurrent_futures/test_deadlock.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def test_exit_at_task_unpickle(self):
145145
self._check_crash(BrokenProcessPool, id, ExitAtUnpickle())
146146

147147
def test_error_at_task_unpickle(self):
148-
# gh-109832: Restore stderr overriden by _raise_error_ignore_stderr()
148+
# gh-109832: Restore stderr overridden by _raise_error_ignore_stderr()
149149
self.addCleanup(setattr, sys, 'stderr', sys.stderr)
150150

151151
# Check problem occurring while unpickling a task on workers
@@ -183,7 +183,7 @@ def test_error_during_result_pickle_on_worker(self):
183183
self._check_crash(PicklingError, _return_instance, ErrorAtPickle)
184184

185185
def test_error_during_result_unpickle_in_result_handler(self):
186-
# gh-109832: Restore stderr overriden by _raise_error_ignore_stderr()
186+
# gh-109832: Restore stderr overridden by _raise_error_ignore_stderr()
187187
self.addCleanup(setattr, sys, 'stderr', sys.stderr)
188188

189189
# Check problem occurring while unpickling a task in

Lib/test/test_enum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5328,7 +5328,7 @@ def test_convert_value_lookup_priority(self):
53285328
filter=lambda x: x.startswith('CONVERT_TEST_'))
53295329
# We don't want the reverse lookup value to vary when there are
53305330
# multiple possible names for a given value. It should always
5331-
# report the first lexigraphical name in that case.
5331+
# report the first lexicographical name in that case.
53325332
self.assertEqual(test_type(5).name, 'CONVERT_TEST_NAME_A')
53335333

53345334
def test_convert_int(self):

Lib/test/test_fractions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def typed_approx_eq(a, b):
9797

9898
class Symbolic:
9999
"""Simple non-numeric class for testing mixed arithmetic.
100-
It is not Integral, Rational, Real or Complex, and cannot be conveted
100+
It is not Integral, Rational, Real or Complex, and cannot be converted
101101
to int, float or complex. but it supports some arithmetic operations.
102102
"""
103103
def __init__(self, value):

Lib/test/test_free_threading/test_monitoring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""Tests monitoring, sys.settrace, and sys.setprofile in a multi-threaded
2-
environmenet to verify things are thread-safe in a free-threaded build"""
2+
environment to verify things are thread-safe in a free-threaded build"""
33

44
import sys
55
import time

Lib/test/test_fstring.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -745,13 +745,13 @@ def test_comments(self):
745745
}''', 'A complex trick: 2')
746746
self.assertEqual(f'''
747747
{
748-
40 # fourty
748+
40 # forty
749749
+ # plus
750750
2 # two
751751
}''', '\n42')
752752
self.assertEqual(f'''
753753
{
754-
40 # fourty
754+
40 # forty
755755
+ # plus
756756
2 # two
757757
}''', '\n42')

Lib/test/test_getpath.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ def test_framework_macos(self):
557557
ns.add_known_dir("/Library/Frameworks/Python.framework/Versions/9.8/lib/python9.8/lib-dynload")
558558
ns.add_known_file("/Library/Frameworks/Python.framework/Versions/9.8/lib/python9.8/os.py")
559559

560-
# This is definitely not the stdlib (see discusion in bpo-46890)
560+
# This is definitely not the stdlib (see discussion in bpo-46890)
561561
#ns.add_known_file("/Library/Frameworks/lib/python98.zip")
562562

563563
expected = dict(
@@ -605,7 +605,7 @@ def test_alt_framework_macos(self):
605605
ns.add_known_dir("/Library/Frameworks/DebugPython.framework/Versions/9.8/lib/python9.8/lib-dynload")
606606
ns.add_known_xfile("/Library/Frameworks/DebugPython.framework/Versions/9.8/lib/python9.8/os.py")
607607

608-
# This is definitely not the stdlib (see discusion in bpo-46890)
608+
# This is definitely not the stdlib (see discussion in bpo-46890)
609609
#ns.add_known_xfile("/Library/lib/python98.zip")
610610
expected = dict(
611611
executable="/Library/Frameworks/DebugPython.framework/Versions/9.8/bin/python9.8",

Lib/test/test_logging.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3748,16 +3748,16 @@ def test_baseconfig(self):
37483748
'adict': {
37493749
'd': 'e', 'f': 3 ,
37503750
'alpha numeric 1 with spaces' : 5,
3751-
'aplha numeric 1 %( - © ©ß¯' : 9,
3751+
'alpha numeric 1 %( - © ©ß¯' : 9,
37523752
'alpha numeric ] 1 with spaces' : 15,
3753-
'aplha ]] numeric 1 %( - © ©ß¯]' : 19,
3754-
' aplha [ numeric 1 %( - © ©ß¯] ' : 11,
3755-
' aplha ' : 32,
3753+
'alpha ]] numeric 1 %( - © ©ß¯]' : 19,
3754+
' alpha [ numeric 1 %( - © ©ß¯] ' : 11,
3755+
' alpha ' : 32,
37563756
'' : 10,
37573757
'nest4' : {
37583758
'd': 'e', 'f': 3 ,
37593759
'alpha numeric 1 with spaces' : 5,
3760-
'aplha numeric 1 %( - © ©ß¯' : 9,
3760+
'alpha numeric 1 %( - © ©ß¯' : 9,
37613761
'' : 10,
37623762
'somelist' : ('g', ('h', 'i'), 'j'),
37633763
'somedict' : {
@@ -3779,14 +3779,14 @@ def test_baseconfig(self):
37793779
self.assertEqual(bc.convert('cfg://adict.d'), 'e')
37803780
self.assertEqual(bc.convert('cfg://adict[f]'), 3)
37813781
self.assertEqual(bc.convert('cfg://adict[alpha numeric 1 with spaces]'), 5)
3782-
self.assertEqual(bc.convert('cfg://adict[aplha numeric 1 %( - © ©ß¯]'), 9)
3782+
self.assertEqual(bc.convert('cfg://adict[alpha numeric 1 %( - © ©ß¯]'), 9)
37833783
self.assertEqual(bc.convert('cfg://adict[]'), 10)
37843784
self.assertEqual(bc.convert('cfg://adict.nest4.d'), 'e')
37853785
self.assertEqual(bc.convert('cfg://adict.nest4[d]'), 'e')
37863786
self.assertEqual(bc.convert('cfg://adict[nest4].d'), 'e')
37873787
self.assertEqual(bc.convert('cfg://adict[nest4][f]'), 3)
37883788
self.assertEqual(bc.convert('cfg://adict[nest4][alpha numeric 1 with spaces]'), 5)
3789-
self.assertEqual(bc.convert('cfg://adict[nest4][aplha numeric 1 %( - © ©ß¯]'), 9)
3789+
self.assertEqual(bc.convert('cfg://adict[nest4][alpha numeric 1 %( - © ©ß¯]'), 9)
37903790
self.assertEqual(bc.convert('cfg://adict[nest4][]'), 10)
37913791
self.assertEqual(bc.convert('cfg://adict[nest4][somelist][0]'), 'g')
37923792
self.assertEqual(bc.convert('cfg://adict[nest4][somelist][1][0]'), 'h')
@@ -3806,8 +3806,8 @@ def test_baseconfig(self):
38063806
self.assertRaises(ValueError, bc.convert, 'cfg://!')
38073807
self.assertRaises(KeyError, bc.convert, 'cfg://adict[2]')
38083808
self.assertRaises(KeyError, bc.convert, 'cfg://adict[alpha numeric ] 1 with spaces]')
3809-
self.assertRaises(ValueError, bc.convert, 'cfg://adict[ aplha ]] numeric 1 %( - © ©ß¯] ]')
3810-
self.assertRaises(ValueError, bc.convert, 'cfg://adict[ aplha [ numeric 1 %( - © ©ß¯] ]')
3809+
self.assertRaises(ValueError, bc.convert, 'cfg://adict[ alpha ]] numeric 1 %( - © ©ß¯] ]')
3810+
self.assertRaises(ValueError, bc.convert, 'cfg://adict[ alpha [ numeric 1 %( - © ©ß¯] ]')
38113811

38123812
def test_namedtuple(self):
38133813
# see bpo-39142

Lib/test/test_math.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,7 @@ def __repr__(self):
14021402
return f'Flt({int(self)})'
14031403

14041404
def baseline_sumprod(p, q):
1405-
"""This defines the target behavior including expections and special values.
1405+
"""This defines the target behavior including exceptions and special values.
14061406
However, it is subject to rounding errors, so float inputs should be exactly
14071407
representable with only a few bits.
14081408
"""

Lib/test/test_msvcrt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class TestConsoleIO(unittest.TestCase):
6464
# CREATE_NEW_CONSOLE creates a "popup" window.
6565
@requires_resource('gui')
6666
def run_in_separated_process(self, code):
67-
# Run test in a seprated process to avoid stdin conflicts.
67+
# Run test in a separated process to avoid stdin conflicts.
6868
# See: gh-110147
6969
cmd = [sys.executable, '-c', code]
7070
subprocess.run(cmd, check=True, capture_output=True,

Lib/test/test_posix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@ def test_sched_priority(self):
12711271
self.assertIsInstance(lo, int)
12721272
self.assertIsInstance(hi, int)
12731273
self.assertGreaterEqual(hi, lo)
1274-
# Apple plaforms return 15 without checking the argument.
1274+
# Apple platforms return 15 without checking the argument.
12751275
if not is_apple:
12761276
self.assertRaises(OSError, posix.sched_get_priority_min, -23)
12771277
self.assertRaises(OSError, posix.sched_get_priority_max, -23)

Lib/test/test_property.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def getter3(self):
438438
self.assertEqual(p2.__doc__, "doc-A")
439439

440440
# Case-3: with no user-provided doc new getter doc
441-
# takes precendence
441+
# takes precedence
442442
p = property(getter2, None, None, None)
443443

444444
p2 = p.getter(getter3)

Lib/test/test_queue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ def _shutdown_get(self, immediate):
486486
else:
487487
thrds = (
488488
# on shutdown(immediate=False)
489-
# one of these threads shoud raise Shutdown
489+
# one of these threads should raise Shutdown
490490
(self._get, (q, go, results)),
491491
(self._get, (q, go, results)),
492492
(self._get, (q, go, results)),

Lib/test/test_socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1670,7 +1670,7 @@ def test_getaddrinfo_int_port_overflow(self):
16701670
try:
16711671
socket.getaddrinfo(None, ULONG_MAX + 1, type=socket.SOCK_STREAM)
16721672
except OverflowError:
1673-
# Platforms differ as to what values consitute a getaddrinfo() error
1673+
# Platforms differ as to what values constitute a getaddrinfo() error
16741674
# return. Some fail for LONG_MAX+1, others ULONG_MAX+1, and Windows
16751675
# silently accepts such huge "port" aka "service" numeric values.
16761676
self.fail("Either no error or socket.gaierror expected.")

Lib/test/test_string_literals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def test_eval_str_invalid_escape(self):
131131
self.assertEqual(exc.lineno, 1)
132132
self.assertEqual(exc.offset, 1)
133133

134-
# Check that the warning is raised ony once if there are syntax errors
134+
# Check that the warning is raised only once if there are syntax errors
135135

136136
with warnings.catch_warnings(record=True) as w:
137137
warnings.simplefilter('always', category=SyntaxWarning)

Lib/test/test_zipfile/test_core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ def test_force_zip64(self):
11161116
# Because this is hard to verify by parsing the data as a zip, the raw
11171117
# bytes are checked to ensure that they line up with the zip spec.
11181118
# The spec for this can be found at: https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT
1119-
# The relevent sections for this test are:
1119+
# The relevant sections for this test are:
11201120
# - 4.3.7 for local file header
11211121
# - 4.5.3 for zip64 extra field
11221122

@@ -1187,7 +1187,7 @@ def test_unseekable_zip_known_filesize(self):
11871187
# in as a zip, this test looks at the raw bytes created to ensure that
11881188
# the correct data has been generated.
11891189
# The spec for this can be found at: https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT
1190-
# The relevent sections for this test are:
1190+
# The relevant sections for this test are:
11911191
# - 4.3.7 for local file header
11921192
# - 4.3.9 for the data descriptor
11931193
# - 4.5.3 for zip64 extra field

Lib/test/test_zipimport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ def testZip64LargeFile(self):
802802
"to run"
803803
)
804804

805-
# N.B.: We do alot of gymnastics below in the ZIP_STORED case to save
805+
# N.B.: We do a lot of gymnastics below in the ZIP_STORED case to save
806806
# and reconstruct a sparse zip on systems that support sparse files.
807807
# Instead of creating a ~8GB zip file mainly consisting of null bytes
808808
# for every run of the test, we create the zip once and save off the

Lib/turtledemo/sorting_animate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Sorts a shelf of 10 blocks using insertion
88
sort, selection sort and quicksort.
99
10-
Shelfs are implemented using builtin lists.
10+
Shelves are implemented using builtin lists.
1111
1212
Blocks are turtles with shape "square", but
1313
stretched to rectangles by shapesize()

Makefile.pre.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK): \
962962
$(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)
963963
$(LN) -fsn Versions/Current/Resources $(PYTHONFRAMEWORKDIR)/Resources
964964

965-
# This rule is for iOS, which requires an annoyingly just slighly different
965+
# This rule is for iOS, which requires an annoyingly just slightly different
966966
# format for frameworks to macOS. It *doesn't* use a versioned framework, and
967967
# the Info.plist must be in the root of the framework.
968968
$(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK): \

Misc/coverity_model.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ PyObject *PyLong_FromSsize_t(Py_ssize_t ival)
7474

7575
/* tainted sinks
7676
*
77-
* Coverity considers argv, environ, read() data etc as tained.
77+
* Coverity considers argv, environ, read() data etc as tainted.
7878
*/
7979

8080
PyObject *PyErr_SetFromErrnoWithFilename(PyObject *exc, const char *filename)

Modules/_threadmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ thread_run(void *boot_raw)
314314
// gh-108987: If _thread.start_new_thread() is called before or while
315315
// Python is being finalized, thread_run() can called *after*.
316316
// _PyRuntimeState_SetFinalizing() is called. At this point, all Python
317-
// threads must exit, except of the thread calling Py_Finalize() whch holds
318-
// the GIL and must not exit.
317+
// threads must exit, except of the thread calling Py_Finalize() which
318+
// holds the GIL and must not exit.
319319
//
320320
// At this stage, tstate can be a dangling pointer (point to freed memory),
321321
// it's ok to call _PyThreadState_MustExit() with a dangling pointer.

0 commit comments

Comments
 (0)