Skip to content

Commit 22ca579

Browse files
committed
pylint: load_config shall use 'exec'
1 parent ca6ba9b commit 22ca579

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pyrocore/util/load_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ def _load_py(self, namespace, config_file):
204204
"""
205205
if config_file and os.path.isfile(config_file):
206206
self.LOG.debug("Loading %r..." % (config_file,))
207-
exec(compile(open(config_file).read(), config_file, 'exec'), vars(config), namespace)
207+
exec(compile(open(config_file).read(), config_file, 'exec'), # pylint: disable=exec-used
208+
vars(config), namespace)
208209
else:
209210
self.LOG.warning("Configuration file %r not found!" % (config_file,))
210211

0 commit comments

Comments
 (0)