mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Use new asttokens.ASTText to support dollar signs inside f-strings
Summary: Replaced uses of asttokens.ASTTokens with asttokens.ASTText when working with plain `ast` trees, and use `atok.get_text_range` instead of `node.first_token`. Upgraded asttokens in Python 2 (it was already upgraded in Python 3). Test Plan: Added a test with f-strings. Reviewers: dsagal Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D4001
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
### python 2 requirements, see requirements3.txt for python 3
|
||||
|
||||
astroid==1.6.6
|
||||
asttokens==2.0.5
|
||||
asttokens==2.2.1
|
||||
backports.functools-lru-cache==1.6.4
|
||||
chardet==4.0.0
|
||||
enum34==1.1.10
|
||||
|
||||
Reference in New Issue
Block a user