Skip to content

Commit

Permalink
JSON encoding sets to lists (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
iambibhas committed Jul 16, 2020
1 parent 16cf6cd commit d68729d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion baseframe/__init__.py
Expand Up @@ -114,7 +114,7 @@ def default(self, o):
return dict(o)
if isinstance(o, furl):
return o.url
if isinstance(o, types.GeneratorType):
if isinstance(o, (types.GeneratorType, abc.Set)):
return list(o)
if isinstance(o, MarkdownComposite):
return {'text': o.text, 'html': o.html}
Expand Down

0 comments on commit d68729d

Please sign in to comment.