Closed andy-maier closed 12 months ago
Percent style example: print("this is CPC %s", cpc_name) New style example: print("this is CPC {}".format(cpc_name))
print("this is CPC %s", cpc_name)
print("this is CPC {}".format(cpc_name))
To identify the percent-style uses, grep for (%.*[srdf])
(%.*[srdf])
Note that logging calls need to continue to use percent-style.
Formatting strings (e.g. f"this is CPC {cpu_name}") cannot be used, since we have to support Python 2.7 and 3.5.
f"this is CPC {cpu_name}"
There are no usages of old percent style string formatting in this project, So closing this issue.
Percent style example:
print("this is CPC %s", cpc_name)
New style example:print("this is CPC {}".format(cpc_name))
To identify the percent-style uses, grep for
(%.*[srdf])
Note that logging calls need to continue to use percent-style.
Formatting strings (e.g.
f"this is CPC {cpu_name}"
) cannot be used, since we have to support Python 2.7 and 3.5.