@@ -521,7 +521,7 @@ def gcc_get_limited_api_macros(headers):
521521
522522 api_hexversion = sys .version_info .major << 24 | sys .version_info .minor << 16
523523
524- preprocesor_output_with_macros = subprocess .check_output (
524+ preprocessor_output_with_macros = subprocess .check_output (
525525 sysconfig .get_config_var ("CC" ).split ()
526526 + [
527527 # Prevent the expansion of the exported macros so we can
@@ -540,7 +540,7 @@ def gcc_get_limited_api_macros(headers):
540540 return {
541541 target
542542 for target in re .findall (
543- r"#define (\w+)" , preprocesor_output_with_macros
543+ r"#define (\w+)" , preprocessor_output_with_macros
544544 )
545545 }
546546
@@ -561,7 +561,7 @@ def gcc_get_limited_api_definitions(headers):
561561 Requires Python built with a GCC-compatible compiler. (clang might work)
562562 """
563563 api_hexversion = sys .version_info .major << 24 | sys .version_info .minor << 16
564- preprocesor_output = subprocess .check_output (
564+ preprocessor_output = subprocess .check_output (
565565 sysconfig .get_config_var ("CC" ).split ()
566566 + [
567567 # Prevent the expansion of the exported macros so we can capture
@@ -581,13 +581,13 @@ def gcc_get_limited_api_definitions(headers):
581581 stderr = subprocess .DEVNULL ,
582582 )
583583 stable_functions = set (
584- re .findall (r"__PyAPI_FUNC\(.*?\)\s*(.*?)\s*\(" , preprocesor_output )
584+ re .findall (r"__PyAPI_FUNC\(.*?\)\s*(.*?)\s*\(" , preprocessor_output )
585585 )
586586 stable_exported_data = set (
587- re .findall (r"__EXPORT_DATA\((.*?)\)" , preprocesor_output )
587+ re .findall (r"__EXPORT_DATA\((.*?)\)" , preprocessor_output )
588588 )
589589 stable_data = set (
590- re .findall (r"__PyAPI_DATA\(.*?\)[\s\*\(]*([^);]*)\)?.*;" , preprocesor_output )
590+ re .findall (r"__PyAPI_DATA\(.*?\)[\s\*\(]*([^);]*)\)?.*;" , preprocessor_output )
591591 )
592592 return stable_data | stable_exported_data | stable_functions
593593
0 commit comments