Skip to content

Replace f-strings with Python<3.6 compatible alternatives

Notifications You must be signed in to change notification settings

ssaid/fstring-downgrade

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 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

  • Python 100.0%