def split_into(n, type, value):
 parts = map((lambda x: x.strip()), value.split(';', (n - 1)))
 if (sum((1 for part in parts if part)) < n):
  raise ValueError(('invalid %s index entry %r' % (type, value)))
 return parts

def split_into ( n , type , value ) : parts = map ( ( lambda x : x . strip ( ) ) , value . split ( ';' , ( n - 1 ) ) ) if ( sum ( ( 1 for part in parts if part ) ) < n ) : raise ValueError ( ( 'invalid %s index entry %r' % ( type , value ) ) ) return parts
split an index entry into a given number of parts at semicolons .