astroquery/vo_conesearch/core.py
def _parse_result(self, response, url, pars={}, verbose=False):
        """
        Parse the raw HTTP response and return it as a table.
        """
        # Suppress any VOTable related warnings.
        if not verbose:
            commons.suppress_vo_warnings()

        query = []
        for key, value in pars.items():
            query.append('{0}={1}'.format(urllib.parse.quote(key),
                                          urllib.parse.quote_plus(str(value))))
        parsed_url = url + '&'.join(query)

        # Parse the result
        pedantic = 'exception' if conf.pedantic else 'warn'
        tab = table.parse(BytesIO(response.content), filename=parsed_url,
                          verify=pedantic)
        try:
            result = vo_tab_parse(tab, url, pars)
        except VOSError as exc:
            result = None
            warnings.warn(str(exc), NoResultsWarning)
        return result

        Parse the raw HTTP response and return it as a table.
        
Parse the raw HTTP response and return it as a table.
Parse the raw HTTP response and return it as a table .
def _parse_result(self, response, url, pars={}, verbose=False):
        if not verbose:
            commons.suppress_vo_warnings()
        query = []
        for key, value in pars.items():
            query.append('{0}={1}'.format(urllib.parse.quote(key),
                                          urllib.parse.quote_plus(str(value))))
        parsed_url = url + '&'.join(query)
        pedantic = 'exception' if conf.pedantic else 'warn'
        tab = table.parse(BytesIO(response.content), filename=parsed_url,
                          verify=pedantic)
        try:
            result = vo_tab_parse(tab, url, pars)
        except VOSError as exc:
            result = None
            warnings.warn(str(exc), NoResultsWarning)
        return result
def _parse_result ( self , response , url , pars = { } , verbose = False ) : if not verbose : commons . suppress_vo_warnings ( ) query = [ ] for key , value in pars . items ( ) : query . append ( '{0}={1}' . format ( urllib . parse . quote ( key ) , urllib . parse . quote_plus ( str ( value ) ) ) ) parsed_url = url + '&' . join ( query ) pedantic = 'exception' if conf . pedantic else 'warn' tab = table . parse ( BytesIO ( response . content ) , filename = parsed_url , verify = pedantic ) try : result = vo_tab_parse ( tab , url , pars ) except VOSError as exc : result = None warnings . warn ( str ( exc ) , NoResultsWarning ) return result
Parse the raw HTTP response and return it as a table.
Parse the raw HTTP response and return it as a table .
"""
        Parse the raw HTTP response and return it as a table.
        """ # Suppress any VOTable related warnings. # Parse the result
self
response
url
pars
verbose