Coding style change

This commit is contained in:
Roland Hedberg
2011-03-14 16:57:06 +01:00
parent feb4f14e48
commit 8971118375

View File

@@ -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."""