summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorabstractee <48130041+abstractee@users.noreply.github.com>2024-09-03 00:20:40 (GMT)
committerGitHub <noreply@github.com>2024-09-03 00:20:40 (GMT)
commit1f4a49ea53516e7ff177beedc09a1e4439b3be1f (patch)
treec6aebbf8b1875231a21c667e16d3168111e672bd /Lib
parent33b790978d8b817a66a4a117a8c38a857b6103f0 (diff)
downloadcpython-1f4a49ea53516e7ff177beedc09a1e4439b3be1f.zip
cpython-1f4a49ea53516e7ff177beedc09a1e4439b3be1f.tar.gz
cpython-1f4a49ea53516e7ff177beedc09a1e4439b3be1f.tar.bz2
Fix typos in warnings, docstrings, comments and text files (#123597)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/_strptime.py2
-rw-r--r--Lib/hashlib.py2
-rw-r--r--Lib/idlelib/Icons/README.txt2
-rw-r--r--Lib/idlelib/config.py2
-rw-r--r--Lib/idlelib/editor.py2
-rw-r--r--Lib/idlelib/extend.txt2
-rw-r--r--Lib/importlib/resources/_common.py2
-rw-r--r--Lib/zipimport.py2
8 files changed, 8 insertions, 8 deletions
diff --git a/Lib/_strptime.py b/Lib/_strptime.py
index e42af75..3f868bc 100644
--- a/Lib/_strptime.py
+++ b/Lib/_strptime.py
@@ -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.
diff --git a/Lib/hashlib.py b/Lib/hashlib.py
index da05770..1b2c30c 100644
--- a/Lib/hashlib.py
+++ b/Lib/hashlib.py
@@ -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
diff --git a/Lib/idlelib/Icons/README.txt b/Lib/idlelib/Icons/README.txt
index f285637..e245bc0 100644
--- a/Lib/idlelib/Icons/README.txt
+++ b/Lib/idlelib/Icons/README.txt
@@ -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/
diff --git a/Lib/idlelib/config.py b/Lib/idlelib/config.py
index 6a5acac..d10c88a 100644
--- a/Lib/idlelib/config.py
+++ b/Lib/idlelib/config.py
@@ -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>'],
diff --git a/Lib/idlelib/editor.py b/Lib/idlelib/editor.py
index 7bfa093..c76db20 100644
--- a/Lib/idlelib/editor.py
+++ b/Lib/idlelib/editor.py
@@ -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()
diff --git a/Lib/idlelib/extend.txt b/Lib/idlelib/extend.txt
index b482f76..2522758 100644
--- a/Lib/idlelib/extend.txt
+++ b/Lib/idlelib/extend.txt
@@ -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:
diff --git a/Lib/importlib/resources/_common.py b/Lib/importlib/resources/_common.py
index ca5b067..d5381fb 100644
--- a/Lib/importlib/resources/_common.py
+++ b/Lib/importlib/resources/_common.py
@@ -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)
diff --git a/Lib/zipimport.py b/Lib/zipimport.py
index f2724dd..7ceae2b 100644
--- a/Lib/zipimport.py
+++ b/Lib/zipimport.py
@@ -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: