mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-105191: Cleanup peg generator; keep only necessary files (#105197)
This commit is contained in:
parent
c67121ac6b
commit
a241003d04
20 changed files with 60 additions and 16832 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue