From e1632568c6f94914372c5ce7b7a182285098fc19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= Date: Tue, 14 Feb 2017 12:51:11 +0100 Subject: [PATCH] Fix some pylint errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ondřej Lysoněk --- tuned/profiles/variables.py | 2 +- tuned/utils/commands.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tuned/profiles/variables.py b/tuned/profiles/variables.py index 396e590..a871ad9 100644 --- a/tuned/profiles/variables.py +++ b/tuned/profiles/variables.py @@ -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() diff --git a/tuned/utils/commands.py b/tuned/utils/commands.py index d5b2a1f..672ea0e 100644 --- a/tuned/utils/commands.py +++ b/tuned/utils/commands.py @@ -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