diff options
author | Christian Clauss <cclauss@me.com> | 2021-10-06 23:13:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-06 23:13:48 (GMT) |
commit | 745c9d9dfc1ad6fdfdf1d07420c6273ff67fa5be (patch) | |
tree | cf25c5b8d353f69be8ba9b70963eabae044e4c76 /Lib/ctypes | |
parent | db693df3e112c5a61f2cbef63eedce3a36520ded (diff) | |
download | cpython-745c9d9dfc1ad6fdfdf1d07420c6273ff67fa5be.zip cpython-745c9d9dfc1ad6fdfdf1d07420c6273ff67fa5be.tar.gz cpython-745c9d9dfc1ad6fdfdf1d07420c6273ff67fa5be.tar.bz2 |
Fix typos in the Lib directory (GH-28775)
Fix typos in the Lib directory as identified by codespell.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/ctypes')
-rw-r--r-- | Lib/ctypes/_aix.py | 2 | ||||
-rw-r--r-- | Lib/ctypes/test/test_structures.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/ctypes/_aix.py b/Lib/ctypes/_aix.py index 26959d9..fc3e95c 100644 --- a/Lib/ctypes/_aix.py +++ b/Lib/ctypes/_aix.py @@ -163,7 +163,7 @@ def get_legacy(members): return member else: # 32-bit legacy names - both shr.o and shr4.o exist. - # shr.o is the preffered name so we look for shr.o first + # shr.o is the preferred name so we look for shr.o first # i.e., shr4.o is returned only when shr.o does not exist for name in ['shr.o', 'shr4.o']: member = get_one_match(re.escape(name), members) diff --git a/Lib/ctypes/test/test_structures.py b/Lib/ctypes/test/test_structures.py index 245cd94..97ad2b8 100644 --- a/Lib/ctypes/test/test_structures.py +++ b/Lib/ctypes/test/test_structures.py @@ -443,7 +443,7 @@ class StructureTestCase(unittest.TestCase): s = Test(1, 2, 3) # Test the StructUnionType_paramfunc() code path which copies the - # structure: if the stucture is larger than sizeof(void*). + # structure: if the structure is larger than sizeof(void*). self.assertGreater(sizeof(s), sizeof(c_void_p)) dll = CDLL(_ctypes_test.__file__) @@ -451,7 +451,7 @@ class StructureTestCase(unittest.TestCase): func.argtypes = (Test,) func.restype = None func(s) - # bpo-37140: Passing the structure by refrence must not call + # bpo-37140: Passing the structure by reference must not call # its finalizer! self.assertEqual(finalizer_calls, []) self.assertEqual(s.first, 1) |