summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2018-11-19 18:54:33 +0200
committerIvan Kanakarakis <ivan.kanak@gmail.com>2018-11-19 19:07:24 +0200
commitab7705a31fb8c1835d918ff564eeed9a17071ed8 (patch)
treef4e03d52e31e40059318471251351b69c2076e38 /src
parent985f45e18fafa42208b54081a950d6bbab9b64eb (diff)
downloadpysaml2-ab7705a31fb8c1835d918ff564eeed9a17071ed8.tar.gz
Reformat if statement
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/saml2/client_base.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/saml2/client_base.py b/src/saml2/client_base.py
index b40190a0..0cd6eb53 100644
--- a/src/saml2/client_base.py
+++ b/src/saml2/client_base.py
@@ -134,12 +134,13 @@ class Base(Entity):
setattr(self, attr, val)
- if (self.entity_type == "sp"
- and not any([self.want_assertions_signed,
- self.want_response_signed])):
- logger.warning("The SAML service provider accepts unsigned SAML "
- "Responses and Assertions. This configuration is "
- "insecure.")
+ if self.entity_type == "sp" and not any(
+ [self.want_assertions_signed, self.want_response_signed]
+ ):
+ logger.warning(
+ "The SAML service provider accepts unsigned SAML Responses "
+ "and Assertions. This configuration is insecure."
+ )
self.artifact2response = {}