[LNT] r372472 - [LNT] Python 3 support: Fix except with named exception
Thomas Preud'homme via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 21 08:04:23 PDT 2019
Author: thopre
Date: Sat Sep 21 08:04:23 2019
New Revision: 372472
URL: http://llvm.org/viewvc/llvm-project?rev=372472&view=rev
Log:
[LNT] Python 3 support: Fix except with named exception
Use Python 3 syntax for except statement with named exception. This was
produced by running futurize's stage1 lib2to3.fixes.fix_except.
Reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls
Reviewed By: hubert.reinterpretcast
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D67807
Modified:
lnt/trunk/lnt/tests/compile.py
Modified: lnt/trunk/lnt/tests/compile.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/tests/compile.py?rev=372472&r1=372471&r2=372472&view=diff
==============================================================================
--- lnt/trunk/lnt/tests/compile.py (original)
+++ lnt/trunk/lnt/tests/compile.py Sat Sep 21 08:04:23 2019
@@ -314,7 +314,7 @@ def test_build(base_name, run_info, vari
# Remove any existing content, if necessary.
try:
shutil.rmtree(source_path)
- except OSError, e:
+ except OSError as e:
if e.errno != errno.ENOENT:
raise
More information about the llvm-commits
mailing list