diff options
Diffstat (limited to 'src/python/m5/util')
-rw-r--r-- | src/python/m5/util/jobfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/m5/util/jobfile.py b/src/python/m5/util/jobfile.py index ad5b5ff5c..613289a81 100644 --- a/src/python/m5/util/jobfile.py +++ b/src/python/m5/util/jobfile.py @@ -417,7 +417,7 @@ def JobFile(jobfile): raise AttributeError("Could not find file '%s'" % jobfile) data = {} - execfile(filename, data) + exec(compile(open(filename).read(), filename, 'exec'), data) if 'conf' not in data: raise ImportError('cannot import name conf from %s' % jobfile) return data['conf'] |