summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Wold <swold@sunet.se>2013-12-06 10:26:29 +0100
committerStefan Wold <swold@sunet.se>2013-12-06 10:44:41 +0100
commit1b671b0ba04fe9c7ec31417d5890fc15938b59ce (patch)
tree7cbd7ff75d5448b68c1b5cc83528f9a0e3cb69ec
parent367f25eaf647048befb9005a7e130b87235ba44d (diff)
downloadpysaml2-1b671b0ba04fe9c7ec31417d5890fc15938b59ce.tar.gz
Removed errenous comma sign
This resolves this issue with the mongodb backend store: InvalidDocument: Cannot encode object: <saml2.saml.AttributeStatement object at 0x28a2d90>
-rw-r--r--src/saml2/assertion.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saml2/assertion.py b/src/saml2/assertion.py
index 318b7084..0ad9fa5a 100644
--- a/src/saml2/assertion.py
+++ b/src/saml2/assertion.py
@@ -697,7 +697,7 @@ class Assertion(dict):
_ass.authn_statement = [_authn_statement]
if not attr_statement.empty():
- _ass.attribute_statement=[attr_statement],
+ _ass.attribute_statement=[attr_statement]
return _ass
@@ -711,4 +711,4 @@ class Assertion(dict):
"""
ava = policy.restrict(self, sp_entity_id, metadata)
self.update(ava)
- return ava \ No newline at end of file
+ return ava