aboutsummaryrefslogtreecommitdiffstats
path: root/python/mach_bootstrap.py
diff options
context:
space:
mode:
authormarmeladema <xademax@gmail.com>2019-10-20 19:34:25 +0100
committermarmeladema <xademax@gmail.com>2019-10-20 23:43:25 +0100
commit865d7377b30c43c98072a6883a50f98d97e2b45a (patch)
tree631e510a5745a51bb2ec8318e8d5ebaa6a3caa87 /python/mach_bootstrap.py
parent882dcc8408159bed5633337d11e83b6839f97e34 (diff)
downloadservo-865d7377b30c43c98072a6883a50f98d97e2b45a.tar.gz
servo-865d7377b30c43c98072a6883a50f98d97e2b45a.zip
Replace call to execfile(...) by call to exec(compile(open(...)))
This is done in order to be compatible with Python3
Diffstat (limited to 'python/mach_bootstrap.py')
-rw-r--r--python/mach_bootstrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/mach_bootstrap.py b/python/mach_bootstrap.py
index f94f2c6f772..ec506c881a6 100644
--- a/python/mach_bootstrap.py
+++ b/python/mach_bootstrap.py
@@ -166,7 +166,7 @@ def _activate_virtualenv(topdir, is_firefox):
# We want to upgrade pip when virtualenv created for the first time
need_pip_upgrade = True
- execfile(activate_path, dict(__file__=activate_path))
+ exec(compile(open(activate_path).read(), activate_path, 'exec'), dict(__file__=activate_path))
python = _get_exec_path(PYTHON_NAMES, is_valid_path=check_exec_path)
if not python: