Blame SOURCES/bz1572886-01-fix-syntax-multiple-except.-as-parenthes.-tuple.patch

be1b1f
From 19ad28a9be0344b8c0bcde7c711ecbf5062a95ea Mon Sep 17 00:00:00 2001
be1b1f
From: Ivan Devat <idevat@redhat.com>
be1b1f
Date: Mon, 6 Aug 2018 08:43:47 +0200
be1b1f
Subject: [PATCH] fix syntax (multiple except. as parenthes. tuple)
be1b1f
be1b1f
See https://docs.python.org/2/tutorial/errors.html#handling-exceptions
be1b1f
be1b1f
...the parentheses around this tuple are required, because except
be1b1f
ValueError, e: was the syntax used for what is normally written as
be1b1f
except ValueError as e: in modern Python...
be1b1f
---
be1b1f
 pcs/cluster.py | 2 +-
be1b1f
 1 file changed, 1 insertion(+), 1 deletion(-)
be1b1f
be1b1f
diff --git a/pcs/cluster.py b/pcs/cluster.py
be1b1f
index a64fd5fd..b4d49d27 100644
be1b1f
--- a/pcs/cluster.py
be1b1f
+++ b/pcs/cluster.py
be1b1f
@@ -1138,7 +1138,7 @@ class IsComponentStartSupported(object):
be1b1f
                     data["pcsd_capabilities"]
be1b1f
                 ):
be1b1f
                     self.supported = True
be1b1f
-            except KeyError, ValueError:
be1b1f
+            except (KeyError, ValueError):
be1b1f
                 # not a valid json or 404 => not supported
be1b1f
                 pass
be1b1f
 
be1b1f
-- 
be1b1f
2.13.6
be1b1f