Skip to content
Permalink
Browse files

frozenset

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 11, 2015
1 parent 88d2b7a commit c84ae58e2d1b9d6188f613bd4e33226ec7a9e1f1
Showing with 1 addition and 1 deletion.
  1. +1 −1 nikola/utils.py
@@ -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]

0 comments on commit c84ae58

Please sign in to comment.
You can’t perform that action at this time.