зеркало из https://github.com/mozilla/gecko-dev.git
No bug - Fixup whitespaces in build/moz.configure/{init,old}.configure. r=me
This commit is contained in:
Родитель
3eb888db23
Коммит
7af16cb3a7
|
@ -99,7 +99,7 @@ def virtualenv_python(env_python, build_env, mozconfig):
|
|||
import sys
|
||||
import subprocess
|
||||
from mozbuild.virtualenv import (
|
||||
VirtualenvManager,
|
||||
VirtualenvManager,
|
||||
verify_python_version,
|
||||
)
|
||||
|
||||
|
|
|
@ -375,11 +375,11 @@ def old_configure(prepare_configure, all_options, *options):
|
|||
raw_config = {}
|
||||
encoding = 'mbcs' if sys.platform == 'win32' else 'utf-8'
|
||||
with codecs.open('config.data', 'r', encoding) as fh:
|
||||
code = compile(fh.read(), 'config.data', 'exec')
|
||||
# Every variation of the exec() function I tried led to:
|
||||
# SyntaxError: unqualified exec is not allowed in function 'main' it
|
||||
# contains a nested function with free variables
|
||||
exec code in raw_config
|
||||
code = compile(fh.read(), 'config.data', 'exec')
|
||||
# Every variation of the exec() function I tried led to:
|
||||
# SyntaxError: unqualified exec is not allowed in function 'main' it
|
||||
# contains a nested function with free variables
|
||||
exec code in raw_config
|
||||
|
||||
# Ensure all the flags known to old-configure appear in the
|
||||
# @old_configure_options above.
|
||||
|
|
Загрузка…
Ссылка в новой задаче