mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-104169: Fix test_peg_generator after tokenizer refactoring (#110727)
* Fix test_peg_generator after tokenizer refactoring * Remove references to tokenizer.c in comments etc.
This commit is contained in:
parent
23645420dc
commit
17d65547df
10 changed files with 24 additions and 14 deletions
|
|
@ -428,8 +428,8 @@ Objects/typeobject.c:type_new():PyId___slots__ _Py_IDENTIFIER(
|
|||
Objects/unicodeobject.c:unicodeiter_reduce():PyId_iter _Py_IDENTIFIER(iter)
|
||||
Objects/weakrefobject.c:proxy_bytes():PyId___bytes__ _Py_IDENTIFIER(__bytes__)
|
||||
Objects/weakrefobject.c:weakref_repr():PyId___name__ _Py_IDENTIFIER(__name__)
|
||||
Parser/tokenizer.c:fp_setreadl():PyId_open _Py_IDENTIFIER(open)
|
||||
Parser/tokenizer.c:fp_setreadl():PyId_readline _Py_IDENTIFIER(readline)
|
||||
Parser/tokenizer/file_tokenizer.c:fp_setreadl():PyId_open _Py_IDENTIFIER(open)
|
||||
Parser/tokenizer/file_tokenizer.c:fp_setreadl():PyId_readline _Py_IDENTIFIER(readline)
|
||||
Python/Python-ast.c:ast_type_reduce():PyId___dict__ _Py_IDENTIFIER(__dict__)
|
||||
Python/Python-ast.c:make_type():PyId___module__ _Py_IDENTIFIER(__module__)
|
||||
Python/_warnings.c:PyId_stderr _Py_IDENTIFIER(stderr)
|
||||
|
|
|
|||
|
|
@ -123,7 +123,14 @@ def compile_c_extension(
|
|||
common_sources = [
|
||||
str(MOD_DIR.parent.parent.parent / "Python" / "Python-ast.c"),
|
||||
str(MOD_DIR.parent.parent.parent / "Python" / "asdl.c"),
|
||||
str(MOD_DIR.parent.parent.parent / "Parser" / "tokenizer.c"),
|
||||
str(MOD_DIR.parent.parent.parent / "Parser" / "lexer" / "lexer.c"),
|
||||
str(MOD_DIR.parent.parent.parent / "Parser" / "lexer" / "state.c"),
|
||||
str(MOD_DIR.parent.parent.parent / "Parser" / "lexer" / "buffer.c"),
|
||||
str(MOD_DIR.parent.parent.parent / "Parser" / "tokenizer" / "string_tokenizer.c"),
|
||||
str(MOD_DIR.parent.parent.parent / "Parser" / "tokenizer" / "file_tokenizer.c"),
|
||||
str(MOD_DIR.parent.parent.parent / "Parser" / "tokenizer" / "utf8_tokenizer.c"),
|
||||
str(MOD_DIR.parent.parent.parent / "Parser" / "tokenizer" / "readline_tokenizer.c"),
|
||||
str(MOD_DIR.parent.parent.parent / "Parser" / "tokenizer" / "helpers.c"),
|
||||
str(MOD_DIR.parent.parent.parent / "Parser" / "pegen.c"),
|
||||
str(MOD_DIR.parent.parent.parent / "Parser" / "pegen_errors.c"),
|
||||
str(MOD_DIR.parent.parent.parent / "Parser" / "action_helpers.c"),
|
||||
|
|
@ -133,6 +140,8 @@ def compile_c_extension(
|
|||
include_dirs = [
|
||||
str(MOD_DIR.parent.parent.parent / "Include" / "internal"),
|
||||
str(MOD_DIR.parent.parent.parent / "Parser"),
|
||||
str(MOD_DIR.parent.parent.parent / "Parser" / "lexer"),
|
||||
str(MOD_DIR.parent.parent.parent / "Parser" / "tokenizer"),
|
||||
]
|
||||
extension = Extension(
|
||||
extension_name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue