diff options
Diffstat (limited to 'src/python/importer.py')
-rw-r--r-- | src/python/importer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/importer.py b/src/python/importer.py index 60b9b35cd..c54fb4957 100644 --- a/src/python/importer.py +++ b/src/python/importer.py @@ -67,7 +67,7 @@ class CodeImporter(object): override = os.environ.get('M5_OVERRIDE_PY_SOURCE', 'false').lower() if override in ('true', 'yes') and os.path.exists(abspath): - src = file(abspath, 'r').read() + src = open(abspath, 'r').read() code = compile(src, abspath, 'exec') if os.path.basename(srcfile) == '__init__.py': |