mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +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
|
@ -20,7 +20,7 @@ class FLUFLTests(unittest.TestCase):
|
|||
self.assertTrue(cm.exception.lineno, 2)
|
||||
# The old parser reports the end of the token and the new
|
||||
# parser reports the start of the token
|
||||
self.assertEqual(cm.exception.offset, 4 if support.use_old_parser() else 3)
|
||||
self.assertEqual(cm.exception.offset, 3)
|
||||
|
||||
def test_guido_as_bdfl(self):
|
||||
code = '2 {0} 3'
|
||||
|
@ -33,7 +33,7 @@ class FLUFLTests(unittest.TestCase):
|
|||
self.assertEqual(cm.exception.lineno, 1)
|
||||
# The old parser reports the end of the token and the new
|
||||
# parser reports the start of the token
|
||||
self.assertEqual(cm.exception.offset, 4 if support.use_old_parser() else 3)
|
||||
self.assertEqual(cm.exception.offset, 3)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue