Skip to content

Commit 470145f

Browse files
authoredOct 6, 2021
[Misc] [Mac] Fix typos found using codespell (pythonGH-28756)
1 parent f528045 commit 470145f

File tree

17 files changed

+39
-39
lines changed

17 files changed

+39
-39
lines changed
 

‎Mac/BuildScript/build-installer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def pkg_recipes():
454454
source="/pydocs",
455455
readme="""\
456456
This package installs the python documentation at a location
457-
that is useable for pydoc and IDLE.
457+
that is usable for pydoc and IDLE.
458458
""",
459459
postflight="scripts/postflight.documentation",
460460
required=False,
@@ -1602,7 +1602,7 @@ def buildDMG():
16021602
# instead of 11. We should not run into that situation here.)
16031603
# Also we should use "macos" instead of "macosx" going forward.
16041604
#
1605-
# To maintain compability for legacy variants, the file name for
1605+
# To maintain compatibility for legacy variants, the file name for
16061606
# builds on macOS 10.15 and earlier remains:
16071607
# python-3.x.y-macosx10.z.{dmg->pkg}
16081608
# 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.10.0a1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Convert the :mod:`_sha256` extension module types to heap types.
178178
.. section: Core and Builtins
179179
180180
Fix a possible stack overflow in the parser when parsing functions and
181-
classes with a huge ammount of arguments. Patch by Pablo Galindo.
181+
classes with a huge amount of arguments. Patch by Pablo Galindo.
182182

183183
..
184184

‎Misc/NEWS.d/3.10.0a2.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ The :func:`repr` of :mod:`typing` types containing :ref:`Generic Alias Types
258258
.. nonce: 6aDbty
259259
.. section: Library
260260
261-
``binhex.binhex()`` consisently writes macOS 9 line endings.
261+
``binhex.binhex()`` consistently writes macOS 9 line endings.
262262

263263
..
264264
@@ -534,7 +534,7 @@ belong to. Patch by Batuhan Taskaya.
534534
.. nonce: LR4fnY
535535
.. section: Library
536536
537-
Handle exceptions caused by unparseable date headers when using email
537+
Handle exceptions caused by unparsable date headers when using email
538538
"default" policy. Patch by Tim Bell, Georges Toth
539539

540540
..

‎Misc/NEWS.d/3.10.0a3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ branches, are now handled by docsbuild-script.
949949
.. nonce: W_updK
950950
.. section: Tests
951951
952-
Reenable test_gdb on gdb 9.2 and newer:
952+
Re-enable test_gdb on gdb 9.2 and newer:
953953
https://bugzilla.redhat.com/show_bug.cgi?id=1866884 bug is fixed in gdb
954954
10.1.
955955

‎Misc/NEWS.d/3.10.0a4.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ results. Patch by Ammar Askar.
767767
.. nonce: -7-XGz
768768
.. section: Tests
769769
770-
Update test_nntplib to use offical group name of news.aioe.org for testing.
770+
Update test_nntplib to use official group name of news.aioe.org for testing.
771771
Patch by Dong-hee Na.
772772

773773
..
@@ -863,7 +863,7 @@ and Peixing Xin.
863863
864864
Now all platforms use a value for the "EXT_SUFFIX" build variable derived
865865
from SOABI (for instance in freeBSD, "EXT_SUFFIX" is now ".cpython-310d.so"
866-
instead of ".so"). Previosuly only Linux, Mac and VxWorks were using a value
866+
instead of ".so"). Previously only Linux, Mac and VxWorks were using a value
867867
for "EXT_SUFFIX" that included "SOABI".
868868

869869
..

‎Misc/NEWS.d/3.10.0a5.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ Pass ``--timeout=$(TESTTIMEOUT)`` option to the default profile task
549549
.. section: Build
550550
551551
Removed the grep -q and -E flags in the tzpath validation section of the
552-
configure script to better accomodate users of some platforms (specifically
552+
configure script to better accommodate users of some platforms (specifically
553553
Solaris 10).
554554

555555
..

‎Misc/NEWS.d/3.10.0a6.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The :data:`types.FunctionType` constructor now inherits the current builtins
4949
if the *globals* dictionary has no ``"__builtins__"`` key, rather than using
5050
``{"None": None}`` as builtins: same behavior as :func:`eval` and
5151
:func:`exec` functions. Defining a function with ``def function(...): ...``
52-
in Python is not affected, globals cannot be overriden with this syntax: it
52+
in Python is not affected, globals cannot be overridden with this syntax: it
5353
also inherits the current builtins. Patch by Victor Stinner.
5454

5555
..
@@ -355,7 +355,7 @@ in 4.0" to "3.12". See :pep:`623` for detail.
355355
.. nonce: LfTvL-
356356
.. section: Tests
357357
358-
Fix test_importlib to correctly skip Unicode file tests if the fileystem
358+
Fix test_importlib to correctly skip Unicode file tests if the filesystem
359359
does not support them.
360360

361361
..

‎Misc/NEWS.d/3.10.0a7.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ decoded as Unicode characters outside the [U+0000; U+10ffff] range.
195195
.. nonce: lCzIg0
196196
.. section: Core and Builtins
197197
198-
Fix a bug that was causing the parser to crash when emiting syntax errors
198+
Fix a bug that was causing the parser to crash when emitting syntax errors
199199
when reading input from stdin. Patch by Pablo Galindo
200200

201201
..

‎Misc/NEWS.d/3.10.0b1.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ cause any runtime effects with ``from __future__ import annotations``.
276276
.. nonce: 0Ik1AM
277277
.. section: Core and Builtins
278278
279-
:exc:`SyntaxError` exceptions raised by the intepreter will highlight the
279+
:exc:`SyntaxError` exceptions raised by the interpreter will highlight the
280280
full error range of the expression that consistutes the syntax error itself,
281281
instead of just where the problem is detected. Patch by Pablo Galindo.
282282

@@ -547,7 +547,7 @@ enum or one of its members' value.
547547
.. nonce: ejjsyR
548548
.. section: Library
549549
550-
For backwards compatbility with previous minor versions of Python, if
550+
For backwards compatibility with previous minor versions of Python, if
551551
:func:`typing.get_type_hints` receives no namespace dictionary arguments,
552552
:func:`typing.get_type_hints` will search through the global then local
553553
namespaces during evaluation of stringized type annotations (string forward
@@ -720,9 +720,9 @@ now raise ``TypeError`` during substitution.
720720
.. nonce: xT9QjF
721721
.. section: Library
722722
723-
The :mod:`multiprocessing` ``Server`` class now explicitly catchs
723+
The :mod:`multiprocessing` ``Server`` class now explicitly catches
724724
:exc:`SystemExit` and closes the client connection in this case. It happens
725-
when the ``Server.serve_client()`` method reachs the end of file (EOF).
725+
when the ``Server.serve_client()`` method reaches the end of file (EOF).
726726

727727
..
728728
@@ -1132,7 +1132,7 @@ preferred "user", "home", and "prefix" (default) scheme names.
11321132
.. section: Library
11331133
11341134
Improve :meth:`sqlite3.Connection.backup` error handling. The error message
1135-
for non-existant target database names is now ``unknown database <database
1135+
for non-existent target database names is now ``unknown database <database
11361136
name>`` instead of ``SQL logic error``. Patch by Erlend E. Aasland.
11371137

11381138
..

‎Misc/NEWS.d/3.11.0a1.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ called directly or via ``super()``. Patch provided by Yurii Karabas.
162162
.. section: Core and Builtins
163163
164164
The deallocator function of the :exc:`BaseException` type now uses the
165-
trashcan mecanism to prevent stack overflow. For example, when a
165+
trashcan mechanism to prevent stack overflow. For example, when a
166166
:exc:`RecursionError` instance is raised, it can be linked to another
167167
RecursionError through the ``__context__`` attribute or the
168168
``__traceback__`` attribute, and then a chain of exceptions is created. When
@@ -1138,7 +1138,7 @@ blocks. Patch by Pablo Galindo.
11381138
.. nonce: vYFPPC
11391139
.. section: Core and Builtins
11401140
1141-
Constructors of subclasses of some buitin classes (e.g. :class:`tuple`,
1141+
Constructors of subclasses of some builtin classes (e.g. :class:`tuple`,
11421142
:class:`list`, :class:`frozenset`) no longer accept arbitrary keyword
11431143
arguments. Subclass of :class:`set` can now define a ``__new__()`` method
11441144
with additional keyword parameters without overriding also ``__init__()``.
@@ -1317,7 +1317,7 @@ expressions.
13171317
.. nonce: Kp5FxD
13181318
.. section: Core and Builtins
13191319
1320-
Corrent the syntax error message regarding multiple exception types to not
1320+
Correct the syntax error message regarding multiple exception types to not
13211321
refer to "exception groups". Patch by Pablo Galindo
13221322

13231323
..
@@ -3068,8 +3068,8 @@ prevented parallel computation as other :mod:`hashlib` algorithms support.
30683068
.. section: Library
30693069
30703070
It's now possible to receive the type of service (ToS), a.k.a.
3071-
differentiated services (DS), a.k.a. differenciated services code point
3072-
(DSCP) and excplicit congestion notification (ECN) IP header fields with
3071+
differentiated services (DS), a.k.a. differentiated services code point
3072+
(DSCP) and explicit congestion notification (ECN) IP header fields with
30733073
``socket.IP_RECVTOS``.
30743074

30753075
..
@@ -3242,7 +3242,7 @@ Patch by Erlend E. Aasland.
32423242
32433243
AIX: `Lib/_aix_support.get_platform()` may fail in an AIX WPAR. The fileset
32443244
bos.rte appears to have a builddate in both LPAR and WPAR so this fileset is
3245-
queried rather than bos.mp64. To prevent a similiar situation (no builddate
3245+
queried rather than bos.mp64. To prevent a similar situation (no builddate
32463246
in ODM) a value (9988) sufficient for completing a build is provided. Patch
32473247
by M Felt.
32483248

@@ -3717,7 +3717,7 @@ RFC.
37173717
.. nonce: zMFGMV
37183718
.. section: Documentation
37193719
3720-
Replaced occurences of uppercase "Web" and "Internet" with lowercase
3720+
Replaced occurrences of uppercase "Web" and "Internet" with lowercase
37213721
versions per the 2016 revised Associated Press Style Book.
37223722

37233723
..

‎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 overallocated size than to the old size and adds padding.
180180

181181
..

‎Misc/stable_abi.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ macro Py_UNBLOCK_THREADS
285285
macro Py_END_ALLOW_THREADS
286286
added 3.2
287287

288-
# The following were added in PC/python3.def in the intial stable ABI commit,
288+
# The following were added in PC/python3.def in the initial stable ABI commit,
289289
# 4d0d471a8031de90a2b1ce99c4ac4780e60b3bc9,
290290
# and later amendments in 3.2:
291291
# 0d012f284be829c6217f60523db0e1671b7db9d9

0 commit comments

Comments
 (0)