v8/test/preparser
Milad Farazmand 0c3906f4dc Fix an error caused by a bug in Python < 2.7.9
There seems to be a bug in Python versions prior
to 2.7.9 where running exec could produce the following error:

SyntaxError: unqualified exec is not allowed in function
'_ParsePythonTestTemplates' it contains a nested function
with free variables (testcfg.py, line 71)

https://bugs.python.org/issue21591

It's causing an issue on all Ubuntu 14 and RHEL 7 machines.

The proposed change is an equivalent syntax which doesn't
produce an error:
https://docs.python.org/2/reference/simple_stmts.html#the-exec-statement


Change-Id: I159cc1be58ff375f313ae5c4fb814763704b880e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1893647
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Commit-Queue: Milad Farazmand <miladfar@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#64736}
2019-11-04 13:42:10 +00:00
..
BUILD.gn
duplicate-parameter.pyt
OWNERS Add OWNERS files for src and test 2019-05-30 04:51:21 +00:00
preparser.status Remove 'embedded_builtins' variant 2019-10-22 12:58:02 +00:00
strict-identifiers.pyt
testcfg.py Fix an error caused by a bug in Python < 2.7.9 2019-11-04 13:42:10 +00:00