From 707c37e373d7ea4e3f06b24c719fa45f70fbfa49 Mon Sep 17 00:00:00 2001 From: Yang Hau Date: Fri, 1 Dec 2023 17:37:40 +0800 Subject: [PATCH] Fix typos in variable names, function names, and comments (GH-101868) --- Lib/zipimport.py | 2 +- Mac/BuildScript/build-installer.py | 2 +- PC/launcher2.c | 2 +- Parser/pegen_errors.c | 2 +- Tools/build/stable_abi.py | 12 ++++++------ Tools/c-analyzer/c_analyzer/__init__.py | 2 +- Tools/clinic/clinic.py | 4 ++-- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Lib/zipimport.py b/Lib/zipimport.py index 5b9f614f02f..823a82ee830 100644 --- a/Lib/zipimport.py +++ b/Lib/zipimport.py @@ -352,7 +352,7 @@ def _read_directory(archive): with fp: # GH-87235: On macOS all file descriptors for /dev/fd/N share the same - # file offset, reset the file offset after scanning the zipfile diretory + # file offset, reset the file offset after scanning the zipfile directory # to not cause problems when some runs 'python3 /dev/fd/9 9 tuple[int, ...]: flush() return tuple(version) -def version_comparitor(version1: str, version2: str) -> Literal[-1, 0, 1]: +def version_comparator(version1: str, version2: str) -> Literal[-1, 0, 1]: iterator = itertools.zip_longest( version_splitter(version1), version_splitter(version2), fillvalue=0 ) @@ -5203,7 +5203,7 @@ class DSLParser: def directive_version(self, required: str) -> None: global version - if version_comparitor(version, required) < 0: + if version_comparator(version, required) < 0: fail("Insufficient Clinic version!\n" f" Version: {version}\n" f" Required: {required}")