Skip to content
Snippets Groups Projects
Commit f7c3a620 authored by Dan Michael O. Heggø's avatar Dan Michael O. Heggø
Browse files

Merge pull request #107 from AdamWill/py3-exec

Use 'exec' in py3-compatible manner
parents 3f589834 5de1bb82
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ def read_config(config_files, **predata):
def _read_config_file(_config_file, predata):
_file = open(_config_file)
exec _file in globals(), predata
exec(_file, globals(), predata)
_file.close()
for _k, _v in predata.iteritems():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment