mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-40939: Remove the old parser (GH-20768)
This commit removes the old parser, the deprecated parser module, the old parser compatibility flags and environment variables and all associated support code and documentation.
This commit is contained in:
parent
311110abcd
commit
1ed83adb0e
53 changed files with 24447 additions and 35978 deletions
|
@ -1958,13 +1958,3 @@ def wait_process(pid, *, exitcode, timeout=None):
|
|||
# sanity check: it should not fail in practice
|
||||
if pid2 != pid:
|
||||
raise AssertionError(f"pid {pid2} != pid {pid}")
|
||||
|
||||
|
||||
def use_old_parser():
|
||||
import _testinternalcapi
|
||||
config = _testinternalcapi.get_configs()
|
||||
return (config['config']['_use_peg_parser'] == 0)
|
||||
|
||||
|
||||
def skip_if_new_parser(msg):
|
||||
return unittest.skipIf(not use_old_parser(), msg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue