def _do_mb_query(entity, id, includes=[], params={}):
 if (not isinstance(includes, list)):
  includes = [includes]
 _check_includes(entity, includes)
 auth_required = _get_auth_type(entity, id, includes)
 args = dict(params)
 if (len(includes) > 0):
  inc = ' '.join(includes)
  args['inc'] = inc
 path = ('%s/%s' % (entity, id))
 return _mb_request(path, 'GET', auth_required, args=args)

def _do_mb_query ( entity , id , includes = [ ] , params = { } ) : if ( not isinstance ( includes , list ) ) : includes = [ includes ] _check_includes ( entity , includes ) auth_required = _get_auth_type ( entity , id , includes ) args = dict ( params ) if ( len ( includes ) > 0 ) : inc = ' ' . join ( includes ) args [ 'inc' ] = inc path = ( '%s/%s' % ( entity , id ) ) return _mb_request ( path , 'GET' , auth_required , args = args )
make a single get call to the musicbrainz xml api .