Skip to content

Commit 47ff70b

Browse files
author
Thomas Preud'homme
committed
[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 llvm-svn: 372472
1 parent 9ae9d66 commit 47ff70b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lnt/tests/compile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def test_build(base_name, run_info, variables, project, build_config, num_jobs,
314314
# Remove any existing content, if necessary.
315315
try:
316316
shutil.rmtree(source_path)
317-
except OSError, e:
317+
except OSError as e:
318318
if e.errno != errno.ENOENT:
319319
raise
320320

0 commit comments

Comments
 (0)