zhmcclient / zhmc-prometheus-exporter

A Prometheus exporter for the IBM Z HMC
Apache License 2.0
14 stars 9 forks source link

Convert percent-style string formatting to new-style #357

Closed andy-maier closed 12 months ago

andy-maier commented 1 year ago

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.

anilak11 commented 12 months ago

There are no usages of old percent style string formatting in this project, So closing this issue.