Skip to content

Commit 35bb501

Browse files
author
Thomas Preud'homme
committed
[LNT] Python 3 support: Fix exec syntax
Replace python2-specific exec statements with calls to exec builtins. This was produced by running futurize's stage1 lib2to3.fixes.fix_exec. Reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls Reviewed By: hubert.reinterpretcast Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D67808 llvm-svn: 372474
1 parent 47ff70b commit 35bb501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lnt/tests/nt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ def execute_test_modules(test_log, test_modules, test_module_variables,
543543
module_path = os.path.join(test_path, 'TestModule')
544544
module_file = open(module_path)
545545
try:
546-
exec module_file in locals, globals
546+
exec(module_file, locals, globals)
547547
except Exception:
548548
info = traceback.format_exc()
549549
fatal("unable to import test module: %r\n%s" % (

0 commit comments

Comments
 (0)