Use % formatting for log messages over f-strings

This commit is contained in:
Eric Torres
2019-05-03 12:25:55 -07:00
parent 7b27343d52
commit 0c12169130
2 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,7 @@ def add(pkgfile, cachedir):
:param cachedir: cache directory to move package to
:type cachedir: path-like object
"""
syslog.info(f"Adding {pkgfile} to {cachedir}")
syslog.info("Adding %s to %s", pkgfile, cachedir)
shutil.move(pkgfile, cachedir / pkgfile.name)
@ -72,7 +72,7 @@ def delete(pkg):
:type pkg: path-like object
"""
pkg.unlink()
syslog.info(f"Removed {pkg}")
syslog.info("Removed %s", pkg)
def _filter_by_regex(regex_expression, iterable):