1
0
Fork 0

Fix some pylint errors

Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
This commit is contained in:
Ondřej Lysoněk 2017-02-14 12:51:11 +01:00
parent 316f9b5bc3
commit e1632568c6
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ import tuned.logs
import functions.functions as functions
import tuned.consts as consts
from tuned.utils.commands import commands
from configobj import ConfigObj
from configobj import ConfigObj, ConfigObjError
log = tuned.logs.get()

View file

@ -129,7 +129,7 @@ class commands:
os.rename(src, dst)
except OSError as error:
if not no_error:
log.error("cannot rename file '%s' to '%s': '%s'" % (f, str(error)))
log.error("cannot rename file '%s' to '%s': '%s'" % (src, dst, str(error)))
return False
return True