Open peverwhee opened 10 months ago
Now that we've removed support for python2 "officially" we should make an effort to go through and change all the old ".format" strings to "f" strings
Find all the old ".format()" strings and change them to "f" strings (with "{}" grammar). For example, changing:
ofile.write("end subroutine {}".format(API.__part_fname), 1)
To:
ofile.write(f"end subroutine {API.__part_fname}", 1)
Issue came up in https://github.com/NCAR/ccpp-framework/pull/493
Description
Now that we've removed support for python2 "officially" we should make an effort to go through and change all the old ".format" strings to "f" strings
Solution
Find all the old ".format()" strings and change them to "f" strings (with "{}" grammar). For example, changing:
ofile.write("end subroutine {}".format(API.__part_fname), 1)
To:
ofile.write(f"end subroutine {API.__part_fname}", 1)
Related to (optional)
Issue came up in https://github.com/NCAR/ccpp-framework/pull/493