Use lazy % formatting in logging functions

This commit is contained in:
Benjamin Drung 2024-11-02 17:55:20 +01:00
parent 92c80d7bb7
commit 3bc802a209

View File

@ -464,8 +464,10 @@ class PullPkg:
Logger.warning(
"\nNOTICE: '%s' packaging is maintained in "
"the '%s' version control system at:\n"
" %s\n" % (package, vcs, uri)
"the '%s' version control system at:\n %s\n",
package,
vcs,
uri,
)
if vcs == "Bazaar":
@ -475,9 +477,9 @@ class PullPkg:
if vcscmd:
Logger.info(
f"Please use:\n{vcscmd}\n"
"to retrieve the latest (possibly unreleased) "
"updates to the package.\n"
"Please use:\n%s\n"
"to retrieve the latest (possibly unreleased) updates to the package.\n",
vcscmd,
)
if pull == PULL_LIST: