diff options
author | Yang Hau <vulxj0j8j8@gmail.com> | 2023-12-01 09:37:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-01 09:37:40 (GMT) |
commit | 707c37e373d7ea4e3f06b24c719fa45f70fbfa49 (patch) | |
tree | 1f3f61f0715561ef85d0782828c4bce0cd33b6d2 /Tools/build/stable_abi.py | |
parent | 467e3f94171f84221272011d40e4ee32fba47f73 (diff) | |
download | cpython-707c37e373d7ea4e3f06b24c719fa45f70fbfa49.zip cpython-707c37e373d7ea4e3f06b24c719fa45f70fbfa49.tar.gz cpython-707c37e373d7ea4e3f06b24c719fa45f70fbfa49.tar.bz2 |
Fix typos in variable names, function names, and comments (GH-101868)
Diffstat (limited to 'Tools/build/stable_abi.py')
-rw-r--r-- | Tools/build/stable_abi.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Tools/build/stable_abi.py b/Tools/build/stable_abi.py index 7cba788..85c437d 100644 --- a/Tools/build/stable_abi.py +++ b/Tools/build/stable_abi.py @@ -521,7 +521,7 @@ def gcc_get_limited_api_macros(headers): api_hexversion = sys.version_info.major << 24 | sys.version_info.minor << 16 - preprocesor_output_with_macros = subprocess.check_output( + preprocessor_output_with_macros = subprocess.check_output( sysconfig.get_config_var("CC").split() + [ # Prevent the expansion of the exported macros so we can @@ -540,7 +540,7 @@ def gcc_get_limited_api_macros(headers): return { target for target in re.findall( - r"#define (\w+)", preprocesor_output_with_macros + r"#define (\w+)", preprocessor_output_with_macros ) } @@ -561,7 +561,7 @@ def gcc_get_limited_api_definitions(headers): Requires Python built with a GCC-compatible compiler. (clang might work) """ api_hexversion = sys.version_info.major << 24 | sys.version_info.minor << 16 - preprocesor_output = subprocess.check_output( + preprocessor_output = subprocess.check_output( sysconfig.get_config_var("CC").split() + [ # Prevent the expansion of the exported macros so we can capture @@ -581,13 +581,13 @@ def gcc_get_limited_api_definitions(headers): stderr=subprocess.DEVNULL, ) stable_functions = set( - re.findall(r"__PyAPI_FUNC\(.*?\)\s*(.*?)\s*\(", preprocesor_output) + re.findall(r"__PyAPI_FUNC\(.*?\)\s*(.*?)\s*\(", preprocessor_output) ) stable_exported_data = set( - re.findall(r"__EXPORT_DATA\((.*?)\)", preprocesor_output) + re.findall(r"__EXPORT_DATA\((.*?)\)", preprocessor_output) ) stable_data = set( - re.findall(r"__PyAPI_DATA\(.*?\)[\s\*\(]*([^);]*)\)?.*;", preprocesor_output) + re.findall(r"__PyAPI_DATA\(.*?\)[\s\*\(]*([^);]*)\)?.*;", preprocessor_output) ) return stable_data | stable_exported_data | stable_functions |