mirror of
https://github.com/python/cpython.git
synced 2024-12-04 15:25:13 +08:00
Remove unnecessary imports in the grammar parser (GH-24904)
This commit is contained in:
parent
9976834f80
commit
e272528bbd
@ -2,10 +2,7 @@
|
||||
# @generated by pegen from ./Tools/peg_generator/pegen/metagrammar.gram
|
||||
|
||||
import ast
|
||||
import sys
|
||||
import tokenize
|
||||
|
||||
from typing import Any, Optional
|
||||
from typing import Optional
|
||||
|
||||
from pegen.parser import memoize, memoize_left_rec, logger, Parser
|
||||
from ast import literal_eval
|
||||
|
@ -27,10 +27,7 @@ MODULE_PREFIX = """\
|
||||
# @generated by pegen from {filename}
|
||||
|
||||
import ast
|
||||
import sys
|
||||
import tokenize
|
||||
|
||||
from typing import Any, Optional
|
||||
from typing import Optional
|
||||
|
||||
from pegen.parser import memoize, memoize_left_rec, logger, Parser
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user