From 4ad36a4e2885f5bb57c0bfb25e4aba728ed516df Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Fri, 29 Nov 2019 04:11:43 +0100 Subject: [PATCH] Cleanup py2-compatibility 'except' syntax --- tests/test_acls.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_acls.py b/tests/test_acls.py index eccb600..e170add 100644 --- a/tests/test_acls.py +++ b/tests/test_acls.py @@ -71,8 +71,7 @@ def ignore_ioerror(errnum, fn, *args, **kwargs): """ try: fn(*args, **kwargs) - except IOError: - err = sys.exc_info()[1] + except IOError as err: if err.errno == errnum: return raise -- 2.39.5