def UnpackIntSet(data):
 if ((len(data) > 13) and (data[:4] == '\xff\xff\xff\xff')):
  return set(bitmask_to_intlist(zlib.decompress(data[4:])))
 else:
  return set(struct.unpack(('<' + ('I' * (len(data) // 4))), data))

def UnpackIntSet ( data ) : if ( ( len ( data ) > 13 ) and ( data [ : 4 ] == '\xff\xff\xff\xff' ) ) : return set ( bitmask_to_intlist ( zlib . decompress ( data [ 4 : ] ) ) ) else : return set ( struct . unpack ( ( '<' + ( 'I' * ( len ( data ) // 4 ) ) ) , data ) )
unpack a set of ints previously packed using packintset .