Remove support for deprecated ast nodes#625
Merged
Conversation
In Python 2, this used to be one of the possible not-equal syntax. This is no longer used in Python 3.
…syntax This used to mean the same as `except Exception as e:`, but was deprecated long ago.
Python 3 no longer has exec-statement, instead this is now replaced with an exec() function which is treated identically with other regular functions.
Python 3 no longer has print-statement, instead this is now replaced with an print() function which can be treated identically with other regular functions.
Python now represents Slice using ast.Slice rather than ast.Sliceobj, so this is no longer needed.
This was Python 2 syntax where 12L is treated as always creating long integer. Python 3 nowadays automatically creates long integer as needed and it no longer allows this suffix.
This was deprecated by PEP3113 - Removal of Tuple Parameter Unpacking since Python 3.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Remove code for old ast nodes for syntaxes that are no longer supported by Python 3.7 and upwards.
Checklist (delete if not relevant):