gh-105191: Cleanup peg generator; keep only necessary files (#105197)

This commit is contained in:
Lysandros Nikolaou 2023-06-01 17:24:15 +02:00 committed by GitHub
parent c67121ac6b
commit a241003d04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 60 additions and 16832 deletions

View file

@ -83,7 +83,9 @@ def generate_c_parser_source(grammar: Grammar) -> str:
def generate_parser_c_extension(
grammar: Grammar, path: pathlib.PurePath, debug: bool = False,
grammar: Grammar,
path: pathlib.PurePath,
debug: bool = False,
library_dir: Optional[str] = None,
) -> Any:
"""Generate a parser c extension for the given grammar in the given path
@ -112,7 +114,7 @@ def generate_parser_c_extension(
def print_memstats() -> bool:
MiB: Final = 2 ** 20
MiB: Final = 2**20
try:
import psutil # type: ignore
except ImportError: