Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9017b95

Browse files
authored
Fix typos (#123775)
1 parent df4f0cb commit 9017b95

Some content is hidden

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

43 files changed

+59
-59
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
@@ -706,7 +706,7 @@ def cleanup_temp_dir(tmp_dir: StrPath):
706706
# Special Unicode characters
707707
'\uFFFE'
708708
'\uFFFF'
709-
# Match multiple sequential invalid characters for better effiency
709+
# Match multiple sequential invalid characters for better efficiency
710710
']+')
711711

712712
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
@@ -2192,7 +2192,7 @@ def persistent_id(self, obj):
21922192
@support.cpython_only
21932193
def test_bad_ext_code(self):
21942194
# This should never happen in normal circumstances, because the type
2195-
# and the value of the extesion code is checked in copyreg.add_extension().
2195+
# and the value of the extension code is checked in copyreg.add_extension().
21962196
key = (__name__, 'MyList')
21972197
def check(code, exc):
21982198
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
@@ -928,7 +928,7 @@ class C:
928928
C.a
929929
C.a
930930

931-
# destructor shouldn't be able to see inconsisent state
931+
# destructor shouldn't be able to see inconsistent state
932932
C.a = X()
933933
C.a = X()
934934

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
@@ -96,7 +96,7 @@ def typed_approx_eq(a, b):
9696

9797
class Symbolic:
9898
"""Simple non-numeric class for testing mixed arithmetic.
99-
It is not Integral, Rational, Real or Complex, and cannot be conveted
99+
It is not Integral, Rational, Real or Complex, and cannot be converted
100100
to int, float or complex. but it supports some arithmetic operations.
101101
"""
102102
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
@@ -744,13 +744,13 @@ def test_comments(self):
744744
}''', 'A complex trick: 2')
745745
self.assertEqual(f'''
746746
{
747-
40 # fourty
747+
40 # forty
748748
+ # plus
749749
2 # two
750750
}''', '\n42')
751751
self.assertEqual(f'''
752752
{
753-
40 # fourty
753+
40 # forty
754754
+ # plus
755755
2 # two
756756
}''', '\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
@@ -3749,16 +3749,16 @@ def test_baseconfig(self):
37493749
'adict': {
37503750
'd': 'e', 'f': 3 ,
37513751
'alpha numeric 1 with spaces' : 5,
3752-
'aplha numeric 1 %( - © ©ß¯' : 9,
3752+
'alpha numeric 1 %( - © ©ß¯' : 9,
37533753
'alpha numeric ] 1 with spaces' : 15,
3754-
'aplha ]] numeric 1 %( - © ©ß¯]' : 19,
3755-
' aplha [ numeric 1 %( - © ©ß¯] ' : 11,
3756-
' aplha ' : 32,
3754+
'alpha ]] numeric 1 %( - © ©ß¯]' : 19,
3755+
' alpha [ numeric 1 %( - © ©ß¯] ' : 11,
3756+
' alpha ' : 32,
37573757
'' : 10,
37583758
'nest4' : {
37593759
'd': 'e', 'f': 3 ,
37603760
'alpha numeric 1 with spaces' : 5,
3761-
'aplha numeric 1 %( - © ©ß¯' : 9,
3761+
'alpha numeric 1 %( - © ©ß¯' : 9,
37623762
'' : 10,
37633763
'somelist' : ('g', ('h', 'i'), 'j'),
37643764
'somedict' : {
@@ -3780,14 +3780,14 @@ def test_baseconfig(self):
37803780
self.assertEqual(bc.convert('cfg://adict.d'), 'e')
37813781
self.assertEqual(bc.convert('cfg://adict[f]'), 3)
37823782
self.assertEqual(bc.convert('cfg://adict[alpha numeric 1 with spaces]'), 5)
3783-
self.assertEqual(bc.convert('cfg://adict[aplha numeric 1 %( - © ©ß¯]'), 9)
3783+
self.assertEqual(bc.convert('cfg://adict[alpha numeric 1 %( - © ©ß¯]'), 9)
37843784
self.assertEqual(bc.convert('cfg://adict[]'), 10)
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].d'), 'e')
37883788
self.assertEqual(bc.convert('cfg://adict[nest4][f]'), 3)
37893789
self.assertEqual(bc.convert('cfg://adict[nest4][alpha numeric 1 with spaces]'), 5)
3790-
self.assertEqual(bc.convert('cfg://adict[nest4][aplha numeric 1 %( - © ©ß¯]'), 9)
3790+
self.assertEqual(bc.convert('cfg://adict[nest4][alpha numeric 1 %( - © ©ß¯]'), 9)
37913791
self.assertEqual(bc.convert('cfg://adict[nest4][]'), 10)
37923792
self.assertEqual(bc.convert('cfg://adict[nest4][somelist][0]'), 'g')
37933793
self.assertEqual(bc.convert('cfg://adict[nest4][somelist][1][0]'), 'h')
@@ -3807,8 +3807,8 @@ def test_baseconfig(self):
38073807
self.assertRaises(ValueError, bc.convert, 'cfg://!')
38083808
self.assertRaises(KeyError, bc.convert, 'cfg://adict[2]')
38093809
self.assertRaises(KeyError, bc.convert, 'cfg://adict[alpha numeric ] 1 with spaces]')
3810-
self.assertRaises(ValueError, bc.convert, 'cfg://adict[ aplha ]] numeric 1 %( - © ©ß¯] ]')
3811-
self.assertRaises(ValueError, bc.convert, 'cfg://adict[ aplha [ numeric 1 %( - © ©ß¯] ]')
3810+
self.assertRaises(ValueError, bc.convert, 'cfg://adict[ alpha ]] numeric 1 %( - © ©ß¯] ]')
3811+
self.assertRaises(ValueError, bc.convert, 'cfg://adict[ alpha [ numeric 1 %( - © ©ß¯] ]')
38123812

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

Lib/test/test_math.py

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

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

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
@@ -485,7 +485,7 @@ def _shutdown_get(self, immediate):
485485
else:
486486
thrds = (
487487
# on shutdown(immediate=False)
488-
# one of these threads shoud raise Shutdown
488+
# one of these threads should raise Shutdown
489489
(self._get, (q, go, results)),
490490
(self._get, (q, go, results)),
491491
(self._get, (q, go, results)),

Lib/test/test_re.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2503,7 +2503,7 @@ def test_fail(self):
25032503
self.assertEqual(re.search(r'12(?!)|3', '123')[0], '3')
25042504

25052505
def test_character_set_any(self):
2506-
# The union of complementary character sets mathes any character
2506+
# The union of complementary character sets matches any character
25072507
# and is equivalent to "(?s:.)".
25082508
s = '1x\n'
25092509
for p in r'[\s\S]', r'[\d\D]', r'[\w\W]', r'[\S\s]', r'\s|\S':

Lib/test/test_socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1669,7 +1669,7 @@ def test_getaddrinfo_int_port_overflow(self):
16691669
try:
16701670
socket.getaddrinfo(None, ULONG_MAX + 1, type=socket.SOCK_STREAM)
16711671
except OverflowError:
1672-
# Platforms differ as to what values consitute a getaddrinfo() error
1672+
# Platforms differ as to what values constitute a getaddrinfo() error
16731673
# return. Some fail for LONG_MAX+1, others ULONG_MAX+1, and Windows
16741674
# silently accepts such huge "port" aka "service" numeric values.
16751675
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
@@ -897,7 +897,7 @@ def testZip64LargeFile(self):
897897
"to run"
898898
)
899899

900-
# N.B.: We do alot of gymnastics below in the ZIP_STORED case to save
900+
# N.B.: We do a lot of gymnastics below in the ZIP_STORED case to save
901901
# and reconstruct a sparse zip on systems that support sparse files.
902902
# Instead of creating a ~8GB zip file mainly consisting of null bytes
903903
# 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
@@ -6,7 +6,7 @@
66
Sorts a shelf of 10 blocks using insertion
77
sort, selection sort and quicksort.
88
9-
Shelfs are implemented using builtin lists.
9+
Shelves are implemented using builtin lists.
1010
1111
Blocks are turtles with shape "square", but
1212
stretched to rectangles by shapesize()

Makefile.pre.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK): \
983983
$(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)
984984
$(LN) -fsn Versions/Current/Resources $(PYTHONFRAMEWORKDIR)/Resources
985985

986-
# This rule is for iOS, which requires an annoyingly just slighly different
986+
# This rule is for iOS, which requires an annoyingly just slightly different
987987
# format for frameworks to macOS. It *doesn't* use a versioned framework, and
988988
# the Info.plist must be in the root of the framework.
989989
$(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)

0 commit comments

Comments
 (0)