summaryrefslogtreecommitdiff
path: root/src/saml2/mdstore.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/saml2/mdstore.py')
-rw-r--r--src/saml2/mdstore.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/saml2/mdstore.py b/src/saml2/mdstore.py
index 32778af9..24fccb4d 100644
--- a/src/saml2/mdstore.py
+++ b/src/saml2/mdstore.py
@@ -405,9 +405,7 @@ class MetaData(object):
return res
def __eq__(self, other):
- try:
- assert isinstance(other, MetaData)
- except AssertionError:
+ if not isinstance(other, MetaData):
return False
if len(self.entity) != len(other.entity):
@@ -417,9 +415,7 @@ class MetaData(object):
return False
for key, item in self.entity.items():
- try:
- assert item == other[key]
- except AssertionError:
+ if item != other[key]:
return False
return True