8000 Fix typos in comments · python/cpython@a32a7fd · GitHub
[go: up one dir, main page]

Skip to content

Commit a32a7fd

Browse files
committed
Fix typos in comments
1 parent c3ed775 commit a32a7fd

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

Lib/_strptime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def pattern(self, format):
268268
if day_of_month_in_format and not year_in_format:
269269
import warnings
270270
warnings.warn("""\
271-
Parsing dates involving a day of month without a year specified is ambiguious
271+
Parsing dates involving a day of month without a year specified is ambiguous
272272
and fails to parse leap day. The default behavior will change in Python 3.15
273273
to either always raise an exception or to use a different default year (TBD).
274274
To avoid trouble, add a specific year to the input & format.

Lib/hashlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
- hexdigest(): Like digest() except the digest is returned as a string
3434
of double length, containing only hexadecimal digits.
3535
- copy(): Return a copy (clone) of the hash object. This can be used to
36-
efficiently compute the digests of datas that share a common
36+
efficiently compute the digests of data that share a common
3737
initial substring.
3838
3939
For example, to obtain the digest of the byte string 'Nobody inspects the

Lib/idlelib/Icons/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ As of 2022, this was known true for 1 'major' Linux distribution.
3737
(Same would be true for any non-Aqua macOS with 8.5, but now none?)
3838
Can be deleted when we require 8.6 or it is known always used.
3939

40-
Future: Derivitives of Python logo should be submitted for approval.
40+
Future: Derivatives of Python logo should be submitted for approval.
4141
PSF Trademark Working Group / Committee psf-trademarks@python.org
4242
https://www.python.org/community/logos/ # Original files
4343
https://www.python.org/psf/trademarks-faq/

Lib/idlelib/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ def GetCoreKeys(self, keySetName=None):
600600
"""
601601
# TODO: = dict(sorted([(v-event, keys), ...]))?
602602
keyBindings={
603-
# vitual-event: list of key events.
603+
# virtual-event: list of key events.
604604
'<<copy>>': ['<Control-c>', '<Control-C>'],
605605
'<<cut>>': ['<Control-x>', '<Control-X>'],
606606
'<<paste>>': ['<Control-v>', '<Control-V>'],

Lib/idlelib/editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ def RemoveKeybindings(self):
914914
def ApplyKeybindings(self):
915915
"""Apply the virtual, configurable keybindings.
916916
917-
Alse update hotkeys to current keyset.
917+
Also update hotkeys to current keyset.
918918
"""
919919
# Called from configdialog.activate_config_changes.
920920
self.mainmenu.default_keydefs = keydefs = idleConf.GetCurrentKeySet()

Lib/idlelib/extend.txt

8000
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ should probably be refined in the future.)
5252

5353
Extensions are not required to define menu entries for all the events they
5454
implement. (They are also not required to create keybindings, but in that
55-
case there must be empty bindings in cofig-extensions.def)
55+
case there must be empty bindings in config-extensions.def)
5656

5757
Here is a partial example from zzdummy.py:
5858

Lib/importlib/resources/_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def _(path):
182182
@contextlib.contextmanager
183183
def _temp_path(dir: tempfile.TemporaryDirectory):
184184
"""
185-
Wrap tempfile.TemporyDirectory to return a pathlib object.
185+
Wrap tempfile.TemporaryDirectory to return a pathlib object.
186186
"""
187187
with dir as result:
188188
yield pathlib.Path(result)

Lib/zipimport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ def _read_directory(archive):
523523

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

0 commit comments

Comments
 (0)
0