Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove support for deprecated ast nodes #625

Merged
merged 12 commits into from Dec 22, 2022
Merged

Conversation

lieryan
Copy link
Member

@lieryan lieryan commented Dec 22, 2022

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):

  • I have added tests that prove my fix is effective or that my feature works
  • I have updated CHANGELOG.md

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.
@lieryan lieryan self-assigned this Dec 22, 2022
@lieryan lieryan added this to the 1.7.0 milestone Dec 22, 2022
@lieryan lieryan changed the title Lieryan remove old ast nodes Remove support for deprecated ast nodes Dec 22, 2022
@lieryan lieryan merged commit bb125bc into master Dec 22, 2022
@lieryan lieryan deleted the lieryan-remove-old-ast-nodes branch December 22, 2022 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant