mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00: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
|
@ -298,7 +298,7 @@ def untokenize(iterable):
|
|||
|
||||
|
||||
def _get_normal_name(orig_enc):
|
||||
"""Imitates get_normal_name in tokenizer.c."""
|
||||
"""Imitates get_normal_name in Parser/tokenizer/helpers.c."""
|
||||
# Only care about the first 12 characters.
|
||||
enc = orig_enc[:12].lower().replace("_", "-")
|
||||
if enc == "utf-8" or enc.startswith("utf-8-"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue