[PATCH] D67808: [LNT] Python 3 support: Fix exec syntax

Thomas Preud'homme via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 21 08:09:29 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL372474: [LNT] Python 3 support: Fix exec syntax (authored by thopre, committed by ).
Herald added a project: LLVM.

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67808/new/

https://reviews.llvm.org/D67808

Files:
  lnt/trunk/lnt/tests/nt.py


Index: lnt/trunk/lnt/tests/nt.py
===================================================================
--- lnt/trunk/lnt/tests/nt.py
+++ lnt/trunk/lnt/tests/nt.py
@@ -543,7 +543,7 @@
         module_path = os.path.join(test_path, 'TestModule')
         module_file = open(module_path)
         try:
-            exec module_file in locals, globals
+            exec(module_file, locals, globals)
         except Exception:
             info = traceback.format_exc()
             fatal("unable to import test module: %r\n%s" % (


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67808.221175.patch
Type: text/x-patch
Size: 526 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190921/98b48159/attachment.bin>


More information about the llvm-commits mailing list