]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typos in warnings, docstrings, comments and text files (#123597)
authorabstractee <48130041+abstractee@users.noreply.github.com>
Tue, 3 Sep 2024 00:20:40 +0000 (01:20 +0100)
committerGitHub <noreply@github.com>
Tue, 3 Sep 2024 00:20:40 +0000 (02:20 +0200)
Lib/_strptime.py
Lib/hashlib.py
Lib/idlelib/Icons/README.txt
Lib/idlelib/config.py
Lib/idlelib/editor.py
Lib/idlelib/extend.txt
Lib/importlib/resources/_common.py
Lib/zipimport.py

index e42af75af74bf554fbcab8c2bac38a6cb886b53f..3f868bcab4244695cda6a7c88d1df823dea5f36b 100644 (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.
index da0577023cf47da68c351cce02d93ccec38fe340..1b2c30cc32f56473b2467a38d36e9d977e86be6a 100644 (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
index f285637d534a68804fe8571210245f6e02f38093..e245bc0b26e121eb19df5eb9f8464e12dcf6ebde 100644 (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/
index 6a5acac9be88886a959a518950c55eaf98c8d88b..d10c88a43f9231d30927f1ed49512d1c401874f5 100644 (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>'],
index 7bfa0932500d81c9b57056a2dc28e5b11d6214bc..c76db20c58792da9b10ba9e63c9bbcb236922fa6 100644 (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()
index b482f76c4fb0f752e8f761f854fda0fbb1e10f82..2522758ceb4f706c45836ac9a6f55fe89b1a6168 100644 (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:
 
index ca5b06743b46a697a6a0d96da00816696bf129e5..d5381fb80d85e6497e703481d212edfec510ef5c 100644 (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)
index f2724dd0268358d600507e638da54301bc2aa174..7ceae2b7387b261cb743649bbbf3f3143440be40 100644 (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: