Skip to content

JohannesBuchner/fstring-downgrade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Remove f-strings for Python<3.6 compatibility

This is a simple script that attempts to replace f-strings (f"text {variable}") with alternatives compatible with earlier python versions (such as "text {}".format(variable)).

Usage:

python3 fstring-downgrade.py test.py

About

Replace f-strings with Python<3.6 compatible alternatives

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages