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