def set_parser(new_parser_fun=None):
 global parser_fun
 if (new_parser_fun is None):
  new_parser_fun = mb_parser_xml
 if (not callable(new_parser_fun)):
  raise ValueError('new_parser_fun must be callable')
 parser_fun = new_parser_fun

def set_parser ( new_parser_fun = None ) : global parser_fun if ( new_parser_fun is None ) : new_parser_fun = mb_parser_xml if ( not callable ( new_parser_fun ) ) : raise ValueError ( 'new_parser_fun must be callable' ) parser_fun = new_parser_fun
sets the function used to parse the response from the musicbrainz web service .