Skip to content

Commit f4abf8d

Browse files
author
Roland Hedberg
committed
TO deal with Python3 returning not list but dict_items.
1 parent 529a561 commit f4abf8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/saml2/mdstore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def attribute_requirement(self, entity_id, index=None):
305305
raise NotImplementedError
306306

307307
def dumps(self):
308-
return json.dumps(self.items(), indent=2)
308+
return json.dumps(list(self.items()), indent=2)
309309

310310
def with_descriptor(self, descriptor):
311311
'''

0 commit comments

Comments
 (0)