def split_on_feat(artist):
 regex = re.compile(plugins.feat_tokens(), re.IGNORECASE)
 parts = [s.strip() for s in regex.split(artist, 1)]
 if (len(parts) == 1):
  return (parts[0], None)
 else:
  return tuple(parts)

def split_on_feat ( artist ) : regex = re . compile ( plugins . feat_tokens ( ) , re . IGNORECASE ) parts = [ s . strip ( ) for s in regex . split ( artist , 1 ) ] if ( len ( parts ) == 1 ) : return ( parts [ 0 ] , None ) else : return tuple ( parts )
given an artist string .