This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making Beanstalk work for Python 3.9+ (#1302)
Summary: Pull Request resolved: #1302 During the OSS release of Bean Machine Neeraj had the foresight to expand testing to include Python 3.9. This revealed (in good time) that the Beanstalk compiler does not yet work with this version of Python. Upon review of the changes from Python 3.8 to 3.9 (https://docs.python.org/3/whatsnew/3.9.html) it was noted that there were changes to the AST, and in particular, the removal of the ast.Index constructor (https://bugs.python.org/issue34822). This diff adds basic versioning support to Beanstalk as well as version-specific patterns and constructors for slices so that the existing rewrite rules can continue to work as intended. Notes about this can be found at https://fburl.com/beanstalk-py39-notes Reviewed By: neerajprad Differential Revision: D33357242 fbshipit-source-id: 563cc348c97db80e21ba93c9a6d4489f575f8d3d
- Loading branch information
1 parent
4d80c84
commit cc289d7
Showing
3 changed files
with
60 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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