Micro-cleanup TTY_OUTPUT global declaration

This commit is contained in:
Jukka Jylänki
2018-08-19 16:39:17 +03:00
parent d8066153ea
commit 0d8576c0e8

3
emsdk
View File

@@ -2015,7 +2015,7 @@ def silentremove(filename):
if e.errno != errno.ENOENT: raise
def main():
global emscripten_config_directory, BUILD_FOR_TESTING, ENABLE_LLVM_ASSERTIONS
global emscripten_config_directory, BUILD_FOR_TESTING, ENABLE_LLVM_ASSERTIONS, TTY_OUTPUT
if len(sys.argv) <= 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help':
if len(sys.argv) <= 1:
@@ -2147,7 +2147,6 @@ def main():
arg_embedded = extract_bool_arg('--embedded')
arg_notty = extract_bool_arg('--notty')
if arg_notty:
global TTY_OUTPUT
TTY_OUTPUT = False
cmd = sys.argv[1]