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<some_script'
start_offset = fp.tell()
try:
IFPkgFlagRelocatable=False,
IFPkgFlagRestartAction="NoRestart",
IFPkgFlagRootVolumeOnly=True,
- IFPkgFlagUpdateInstalledLangauges=False,
+ IFPkgFlagUpdateInstalledLanguages=False,
)
writePlist(pl, os.path.join(packageContents, 'Info.plist'))
bool list;
// if true, only list detected runtimes with paths without launching
bool listPaths;
- // if true, display help message before contiuning
+ // if true, display help message before continuing
bool help;
// if set, limits search to registry keys with the specified Company
// This is intended for debugging and testing only
void
_Pypegen_set_syntax_error(Parser* p, Token* last_token) {
- // Existing sintax error
+ // Existing syntax error
if (PyErr_Occurred()) {
// Prioritize tokenizer errors to custom syntax errors raised
// on the second phase only if the errors come from the parser.
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
return {
target
for target in re.findall(
- r"#define (\w+)", preprocesor_output_with_macros
+ r"#define (\w+)", preprocessor_output_with_macros
)
}
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
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
def analyze(filenmes, **kwargs):
- results = iter_analyis_results(filenames, **kwargs)
+ results = iter_analysis_results(filenames, **kwargs)
return Analysis.from_results(results)
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
)
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}")