#NEWLINE# def _encode_set( self , set_in ) : #NEWLINE# #INDENT# 'convert a set of bytes into a set of utf8\n           (redis gives us bytes, this lib output utf8)\n           set_in: set of bytes\n           return: same set, but utf-8\n        ' #NEWLINE# res = set ( [ ] ) #NEWLINE# for entry in set_in : #NEWLINE# #INDENT# res . add ( entry . decode ( 'utf-8' ) ) #NEWLINE# #UNINDENT# return res