def _get_content_length(url, preloading=False):
 prefix = ('preload: ' if preloading else '')
 util.dbg((((c.y + prefix) + 'getting content-length header') + c.w))
 response = urlopen(url)
 headers = response.headers
 cl = headers['content-length']
 return int(cl)

def _get_content_length ( url , preloading = False ) : prefix = ( 'preload: ' if preloading else '' ) util . dbg ( ( ( ( c . y + prefix ) + 'getting content-length header' ) + c . w ) ) response = urlopen ( url ) headers = response . headers cl = headers [ 'content-length' ] return int ( cl )
return content length of a url .