mm-cot icon indicating copy to clipboard operation
mm-cot copied to clipboard

Use f-strings for string formatting

Open EwoutH opened this issue 1 year ago • 0 comments

Reformats all the text from the old "%-formatted" and .format() formats to the newer f-string format, as defined in PEP 498. This requires Python 3.6+.

Flynt 0.76 was used to reformat the strings. 6 f-strings were created in 3 files.

F-strings are in general more readable, concise and performant. See also: https://www.python.org/dev/peps/pep-0498/#rationale

EwoutH avatar Feb 13 '23 11:02 EwoutH