From 8971118375b3c6574fb635f42f8f6101537cda54 Mon Sep 17 00:00:00 2001 From: Roland Hedberg Date: Mon, 14 Mar 2011 16:57:06 +0100 Subject: [PATCH] Coding style change --- src/saml2/response.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/saml2/response.py b/src/saml2/response.py index ee7552f..0eb2ebd 100644 --- a/src/saml2/response.py +++ b/src/saml2/response.py @@ -467,15 +467,16 @@ class AuthnResponse(StatusResponse): raise Exception("No assertion part") if self.response.assertion: - self.debug and self.log.info("***Unencrypted response***") + if self.debug: + self.log.info("***Unencrypted response***") return self._assertion(self.response.assertion[0]) else: - self.debug and self.log.info("***Encrypted response***") + if self.debug: + self.log.info("***Encrypted response***") return self._encrypted_assertion( self.response.encrypted_assertion[0]) - return True - + def verify(self): """ Verify that the assertion is syntactically correct and the signature is correct if present."""