def fetch_from_url(url, config, data=None, handlers=None):
 (return_code, return_message, response) = open_url(url, config, data=data, handlers=handlers)
 if (return_code and (return_code == httplib.OK)):
  return_data = response.read()
  response.close()
  return return_data
 else:
  raise URLFetchError(return_message)

def fetch_from_url ( url , config , data = None , handlers = None ) : ( return_code , return_message , response ) = open_url ( url , config , data = data , handlers = handlers ) if ( return_code and ( return_code == httplib . OK ) ) : return_data = response . read ( ) response . close ( ) return return_data else : raise URLFetchError ( return_message )
returns data retrieved from a url .