This comment was posted to reddit on Sep 17, 2018 at 3:26 am and was deleted within 8 hour(s) and 11 minutes.

f2format: Back-port compiler for Python 3.6 f-string literals.

f2format is an intelligent, yet imperfect, solution for f-string literal compatibility. You may write f-string literals in Python 3.6 flavour, and compile to a compatible version for end-users to run, just like Babel for JavaScript.

f2format shall replace f-string literals with str.format methods, whilst maintaining the original layout of source code. You can simply use