Skip to content

Commit c84ae58

Browse files
committedJul 11, 2015
frozenset
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent 88d2b7a commit c84ae58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎nikola/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ def default(self, obj):
501501
try:
502502
return super(CustomEncoder, self).default(obj)
503503
except TypeError:
504-
if isinstance(obj, set):
504+
if isinstance(obj, (set, frozenset)):
505505
return self.encode(sorted(list(obj)))
506506
else:
507507
s = repr(obj).split('0x', 1)[0]

0 commit comments

Comments
 (0)
Please sign in to comment.