#NEWLINE# def _unjellySetOrFrozenset( self , lst , containerType ) : #NEWLINE# #INDENT# '\n        Helper method to unjelly set or frozenset.\n\n        @param lst: the content of the set.\n        @type lst: C{list}\n\n        @param containerType: the type of C{set} to use.\n        ' #NEWLINE# l = range ( len ( lst ) ) #NEWLINE# finished = True #NEWLINE# for elem in l : #NEWLINE# #INDENT# data = self . unjellyInto ( l , elem , data [ elem ] ) #NEWLINE# if isinstance ( data , NotKnown ) : #NEWLINE# #INDENT# finished = False #NEWLINE# #UNINDENT# #UNINDENT# if ( not finished ) : #NEWLINE# #INDENT# return _Container ( l , containerType ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return containerType ( l )