Blame SOURCES/0022-tests-Avoid-old-style-except-syntax-in-the-test-runn.patch

fc9b0e
From 2f88d3a2b29f181e744cc59f5e0889588f67588f Mon Sep 17 00:00:00 2001
fc9b0e
Message-Id: <2f88d3a2b29f181e744cc59f5e0889588f67588f.1566225007.git.aquini@redhat.com>
fc9b0e
In-Reply-To: <d42f467a923dfc09309acb7a83b42e3285fbd8f4.1566225007.git.aquini@redhat.com>
fc9b0e
References: <d42f467a923dfc09309acb7a83b42e3285fbd8f4.1566225007.git.aquini@redhat.com>
fc9b0e
From: David Gibson <david@gibson.dropbear.id.au>
fc9b0e
Date: Sat, 17 Aug 2019 20:59:46 +1000
fc9b0e
Subject: [RHEL7 PATCH 22/31] tests: Avoid old-style except syntax in the test
fc9b0e
 runner script
fc9b0e
fc9b0e
The "except Foo as bar" syntax is the modern style and will be easier to
fc9b0e
port to Python3.
fc9b0e
fc9b0e
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
fc9b0e
Signed-off-by: Eric B Munson <eric@munsonfam.org>
fc9b0e
Signed-off-by: Rafael Aquini <aquini@redhat.com>
fc9b0e
---
fc9b0e
 tests/run_tests.py | 2 +-
fc9b0e
 1 file changed, 1 insertion(+), 1 deletion(-)
fc9b0e
fc9b0e
diff --git a/tests/run_tests.py b/tests/run_tests.py
fc9b0e
index 13a404a..f812923 100755
fc9b0e
--- a/tests/run_tests.py
fc9b0e
+++ b/tests/run_tests.py
fc9b0e
@@ -755,7 +755,7 @@ def main():
fc9b0e
 
fc9b0e
     try:
fc9b0e
         opts, args = getopt.getopt(sys.argv[1:], "vVft:b:p:c:lh")
fc9b0e
-    except getopt.GetoptError, err:
fc9b0e
+    except getopt.GetoptError as err:
fc9b0e
         print(str(err))
fc9b0e
         sys.exit(1)
fc9b0e
     for opt, arg in opts:
fc9b0e
-- 
fc9b0e
1.8.3.1
fc9b0e