mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Replace call to execfile(...) by call to exec(compile(open(...)))
This is done in order to be compatible with Python3
This commit is contained in:
parent
882dcc8408
commit
865d7377b3
2 changed files with 6 additions and 6 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue