0
0
mirror of https://github.com/python/cpython.git synced 2024-11-21 12:59:38 +01:00

Fix typos in warnings, docstrings, comments and text files (#123597)

This commit is contained in:
abstractee 2024-09-03 01:20:40 +01:00 committed by GitHub
parent 33b790978d
commit 1f4a49ea53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 8 additions and 8 deletions

View File

@ -268,7 +268,7 @@ class TimeRE(dict):
if day_of_month_in_format and not year_in_format:
import warnings
warnings.warn("""\
Parsing dates involving a day of month without a year specified is ambiguious
Parsing dates involving a day of month without a year specified is ambiguous
and fails to parse leap day. The default behavior will change in Python 3.15
to either always raise an exception or to use a different default year (TBD).
To avoid trouble, add a specific year to the input & format.

View File

@ -33,7 +33,7 @@ Hash objects have these methods:
- hexdigest(): Like digest() except the digest is returned as a string
of double length, containing only hexadecimal digits.
- copy(): Return a copy (clone) of the hash object. This can be used to
efficiently compute the digests of datas that share a common
efficiently compute the digests of data that share a common
initial substring.
For example, to obtain the digest of the byte string 'Nobody inspects the

View File

@ -37,7 +37,7 @@ As of 2022, this was known true for 1 'major' Linux distribution.
(Same would be true for any non-Aqua macOS with 8.5, but now none?)
Can be deleted when we require 8.6 or it is known always used.
Future: Derivitives of Python logo should be submitted for approval.
Future: Derivatives of Python logo should be submitted for approval.
PSF Trademark Working Group / Committee psf-trademarks@python.org
https://www.python.org/community/logos/ # Original files
https://www.python.org/psf/trademarks-faq/

View File

@ -600,7 +600,7 @@ class IdleConf:
"""
# TODO: = dict(sorted([(v-event, keys), ...]))?
keyBindings={
# vitual-event: list of key events.
# virtual-event: list of key events.
'<<copy>>': ['<Control-c>', '<Control-C>'],
'<<cut>>': ['<Control-x>', '<Control-X>'],
'<<paste>>': ['<Control-v>', '<Control-V>'],

View File

@ -914,7 +914,7 @@ class EditorWindow:
def ApplyKeybindings(self):
"""Apply the virtual, configurable keybindings.
Alse update hotkeys to current keyset.
Also update hotkeys to current keyset.
"""
# Called from configdialog.activate_config_changes.
self.mainmenu.default_keydefs = keydefs = idleConf.GetCurrentKeySet()

View File

@ -52,7 +52,7 @@ should probably be refined in the future.)
Extensions are not required to define menu entries for all the events they
implement. (They are also not required to create keybindings, but in that
case there must be empty bindings in cofig-extensions.def)
case there must be empty bindings in config-extensions.def)
Here is a partial example from zzdummy.py:

View File

@ -182,7 +182,7 @@ def _(path):
@contextlib.contextmanager
def _temp_path(dir: tempfile.TemporaryDirectory):
"""
Wrap tempfile.TemporyDirectory to return a pathlib object.
Wrap tempfile.TemporaryDirectory to return a pathlib object.
"""
with dir as result:
yield pathlib.Path(result)

View File

@ -523,7 +523,7 @@ def _read_directory(archive):
# N.b. Here be dragons: the ordering of these is different than
# the header fields, and it's really easy to get it wrong since
# naturally-occuring zips that use all 3 are >4GB
# naturally-occurring zips that use all 3 are >4GB
if file_size == MAX_UINT32:
file_size = values.pop(0)
if data_size == MAX_UINT32: