Skip to content

Commit

Permalink
pylint: load_config shall use 'exec'
Browse files Browse the repository at this point in the history
  • Loading branch information
pyroscope committed Jun 11, 2017
1 parent ca6ba9b commit 22ca579
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pyrocore/util/load_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,))

Expand Down

0 comments on commit 22ca579

Please sign in to comment.