def _read_from_url(url, config=None):
 r = requests.get(url, stream=True, config=config, timeout=config.intersphinx_timeout)
 r.raise_for_status()
 r.raw.url = r.url
 r.raw.read = functools.partial(r.raw.read, decode_content=True)
 return r.raw

def _read_from_url ( url , config = None ) : r = requests . get ( url , stream = True , config = config , timeout = config . intersphinx_timeout ) r . raise_for_status ( ) r . raw . url = r . url r . raw . read = functools . partial ( r . raw . read , decode_content = True ) return r . raw
reads data from *url* with an http *get* .