From 22ca579e163abc1048ab3f95408b35d4d495a8ad Mon Sep 17 00:00:00 2001 From: pyroscope Date: Sun, 11 Jun 2017 15:16:01 +0200 Subject: [PATCH] pylint: load_config shall use 'exec' --- src/pyrocore/util/load_config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pyrocore/util/load_config.py b/src/pyrocore/util/load_config.py index 461c086c..0bf8fc1a 100644 --- a/src/pyrocore/util/load_config.py +++ b/src/pyrocore/util/load_config.py @@ -204,7 +204,8 @@ def _load_py(self, namespace, config_file): """ if config_file and os.path.isfile(config_file): self.LOG.debug("Loading %r..." % (config_file,)) - exec(compile(open(config_file).read(), config_file, 'exec'), vars(config), namespace) + exec(compile(open(config_file).read(), config_file, 'exec'), # pylint: disable=exec-used + vars(config), namespace) else: self.LOG.warning("Configuration file %r not found!" % (config_file,))