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

Passing code to futurize as a string #606

Open
shobrook opened this issue May 29, 2022 · 0 comments
Open

Passing code to futurize as a string #606

shobrook opened this issue May 29, 2022 · 0 comments

Comments

@shobrook
Copy link

shobrook commented May 29, 2022

futurize works on files. But can I run it on code strings? E.g. is there a function I can import which takes source code (string) as input and returns futurized code (as a string)?

If not, where would I start to adapt the futurize script to do this?

@shobrook shobrook changed the title How can I programmatically futurize a file? How to futurize a code string? May 29, 2022
@shobrook shobrook changed the title How to futurize a code string? Passing code to futurize as a string May 29, 2022
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

No branches or pull requests

1 participant