No bug - Fixup whitespaces in build/moz.configure/{init,old}.configure. r=me

This commit is contained in:
Mike Hommey 2016-03-09 11:39:18 +09:00
Родитель 3eb888db23
Коммит 7af16cb3a7
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -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.