Skip to content

Commit 71d56a7

Browse files
authored
[3.9] [Misc] [Mac] Fix typos found using codespell (GH-28756) (GH-28793)
(cherry picked from commit 470145f) Automerge-Triggered-By: GH:JulienPalard
1 parent 8f76234 commit 71d56a7

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

Mac/BuildScript/build-installer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ def pkg_recipes():
443443
source="/pydocs",
444444
readme="""\
445445
This package installs the python documentation at a location
446-
that is useable for pydoc and IDLE.
446+
that is usable for pydoc and IDLE.
447447
""",
448448
postflight="scripts/postflight.documentation",
449449
required=False,
@@ -1589,7 +1589,7 @@ def buildDMG():
15891589
# instead of 11. We should not run into that situation here.)
15901590
# Also we should use "macos" instead of "macosx" going forward.
15911591
#
1592-
# To maintain compability for legacy variants, the file name for
1592+
# To maintain compatibility for legacy variants, the file name for
15931593
# builds on macOS 10.15 and earlier remains:
15941594
# python-3.x.y-macosx10.z.{dmg->pkg}
15951595
# e.g. python-3.9.4-macosx10.9.{dmg->pkg}

Mac/IDLE/IDLE.app/Contents/Resources/idlemain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# idlemain.py running under the symlinked python.
3636
# This is the magic step.
3737
# 4. During interpreter initialization, because PYTHONEXECUTABLE is defined,
38-
# sys.executable may get set to an unuseful value.
38+
# sys.executable may get set to an useless value.
3939
#
4040
# (Note that the IDLE script and the setting of PYTHONEXECUTABLE is
4141
# generated automatically by bundlebuilder in the Python 2.x build.

Mac/PythonLauncher/MyAppDelegate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ - (void)applicationDidFinishLaunching:(NSNotification *)notification
2222
{
2323
// Test that the file mappings are correct
2424
[self testFileTypeBinding];
25-
// If we were opened because of a file drag or doubleclick
25+
// If we were opened because of a file drag or double-click
2626
// we've set initial_action_done in shouldShowUI
2727
// Otherwise we open a preferences dialog.
2828
if (!initial_action_done) {

Mac/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ How do I create a binary distribution?
296296
Download and unpack the source release from https://www.python.org/download/.
297297
Go to the directory ``Mac/BuildScript``. There you will find a script
298298
``build-installer.py`` that does all the work. This will download and build
299-
a number of 3rd-party libaries, configures and builds a framework Python,
299+
a number of 3rd-party libraries, configures and builds a framework Python,
300300
installs it, creates the installer package files and then packs this in a
301301
DMG image. The script also builds an HTML copy of the current Python
302302
documentation set for this release for inclusion in the framework. The

Misc/NEWS.d/3.9.0a1.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ visited by ``tp_traverse()`` are valid.
279279
.. nonce: Xgc6F_
280280
.. section: Core and Builtins
281281
282-
Remove unecessary intersection and update set operation in dictview with
282+
Remove unnecessary intersection and update set operation in dictview with
283283
empty set. (Contributed by Dong-hee Na in :issue:`38210`.)
284284

285285
..
@@ -868,7 +868,7 @@ Fix the :c:func:`PySys_Audit` call in :class:`mmap.mmap`.
868868
.. nonce: WJkgKV
869869
.. section: Core and Builtins
870870
871-
Remove an unnecssary Py_XINCREF in classobject.c.
871+
Remove an unnecessary Py_XINCREF in classobject.c.
872872

873873
..
874874
@@ -1224,7 +1224,7 @@ Anthony Sottile.
12241224
.. nonce: cyq5nr
12251225
.. section: Library
12261226
1227-
Now :func:`~logging.config.fileConfig` correcty sets the .name of handlers
1227+
Now :func:`~logging.config.fileConfig` correctly sets the .name of handlers
12281228
loaded.
12291229

12301230
..
@@ -1637,7 +1637,7 @@ Preserve subclassing in inspect.Signature.from_callable.
16371637
.. nonce: nHAbuJ
16381638
.. section: Library
16391639
1640-
Names of hashing algorithms frome OpenSSL are now normalized to follow
1640+
Names of hashing algorithms from OpenSSL are now normalized to follow
16411641
Python's naming conventions. For example OpenSSL uses sha3-512 instead of
16421642
sha3_512 or blake2b512 instead of blake2b.
16431643

@@ -2403,7 +2403,7 @@ Fixed comparisons of :class:`datetime.timedelta` and
24032403
.. nonce: 7UV5d0
24042404
.. section: Library
24052405
2406-
Syncronize ``importlib.metadata`` with `importlib_metadata 0.19
2406+
Synchronize ``importlib.metadata`` with `importlib_metadata 0.19
24072407
<https://gitlab.com/python-devs/importlib_metadata/-/milestones/20>`_,
24082408
improving handling of EGG-INFO files and fixing a crash when entry point
24092409
names contained colons.
@@ -3002,7 +3002,7 @@ on platforms with 16-bit :c:type:`wchar_t` (for example, Windows and AIX).
30023002
30033003
In a subinterpreter, spawning a daemon thread now raises an exception.
30043004
Daemon threads were never supported in subinterpreters. Previously, the
3005-
subinterpreter finalization crashed with a Pyton fatal error if a daemon
3005+
subinterpreter finalization crashed with a Python fatal error if a daemon
30063006
thread was still running.
30073007

30083008
..
@@ -3065,7 +3065,7 @@ internal tasks weak set is changed by another thread during iteration.
30653065
.. section: Library
30663066
30673067
:class:`_pyio.IOBase` destructor now does nothing if getting the ``closed``
3068-
attribute fails to better mimick :class:`_io.IOBase` finalizer.
3068+
attribute fails to better mimic :class:`_io.IOBase` finalizer.
30693069

30703070
..
30713071
@@ -4038,7 +4038,7 @@ crypto policies. Use PKCS#8 format with AES256 encryption instead.
40384038
.. nonce: _x-9uH
40394039
.. section: Tests
40404040
4041-
test.support now has a helper function to check for availibility of a hash
4041+
test.support now has a helper function to check for availability of a hash
40424042
digest function. Several tests are refactored avoid MD5 and use SHA256
40434043
instead. Other tests are marked to use MD5 and skipped when MD5 is disabled.
40444044

Misc/NEWS.d/3.9.0a3.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ last iteration of asynchronous for loops. Patch by Pablo Galindo.
178178
.. nonce: WG9alt
179179
.. section: Core and Builtins
180180
181-
Fix incorrent line execution reporting in trace functions when tracing
181+
Fix incorrect line execution reporting in trace functions when tracing
182182
exception handlers with name binding. Patch by Pablo Galindo.
183183

184184
..
@@ -685,7 +685,7 @@ but not required. Patch by Juergen Gmach.
685685
.. section: Library
686686
687687
Fixed __subclasshook__ of :class:`os.PathLike` to return a correct result
688-
upon inheritence. Patch by Bar Harel.
688+
upon inheritance. Patch by Bar Harel.
689689

690690
..
691691

Misc/NEWS.d/3.9.0a5.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ convention. Patch by Dong-hee Na.
175175
.. nonce: FE9S21
176176
.. section: Core and Builtins
177177
178-
Chaged list overallocation strategy. It no longer overallocates if the new
178+
Changed list overallocation strategy. It no longer overallocates if the new
179179
size is closer to overalocated size than to the old size and adds padding.
180180

181181
..

Misc/NEWS.d/3.9.1rc1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ webbrowser: Ignore *NotADirectoryError* when calling ``xdg-settings``.
317317
.. nonce: 6aDbty
318318
.. section: Library
319319
320-
``binhex.binhex()`` consisently writes macOS 9 line endings.
320+
``binhex.binhex()`` consistently writes macOS 9 line endings.
321321

322322
..
323323

0 commit comments

Comments
 (0)