Skip to content

Commit

Permalink
frozenset
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 11, 2015
1 parent 88d2b7a commit c84ae58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/utils.py
Expand Up @@ -501,7 +501,7 @@ def default(self, obj):
try:
return super(CustomEncoder, self).default(obj)
except TypeError:
if isinstance(obj, set):
if isinstance(obj, (set, frozenset)):
return self.encode(sorted(list(obj)))
else:
s = repr(obj).split('0x', 1)[0]
Expand Down

0 comments on commit c84ae58

Please sign in to comment.