[PATCH] D67807: [LNT] Python 3 support: Fix except with named exception
Thomas Preud'homme via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 20 01:28:46 PDT 2019
thopre created this revision.
thopre added reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls.
thopre added a parent revision: D67806: [LNT] Python 3 support: get rid of apply builtin function.
thopre added a child revision: D67808: [LNT] Python 3 support: Fix exec syntax.
Use Python 3 syntax for except statement with named exception. This was
produced by running futurize's stage1 lib2to3.fixes.fix_except.
https://reviews.llvm.org/D67807
Files:
lnt/tests/compile.py
Index: lnt/tests/compile.py
===================================================================
--- lnt/tests/compile.py
+++ lnt/tests/compile.py
@@ -314,7 +314,7 @@
# Remove any existing content, if necessary.
try:
shutil.rmtree(source_path)
- except OSError, e:
+ except OSError as e:
if e.errno != errno.ENOENT:
raise
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67807.220964.patch
Type: text/x-patch
Size: 398 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190920/8873236c/attachment.bin>
More information about the llvm-commits
mailing list