#NEWLINE# def get_content( self , url , headers , try_count = 1 ) : #NEWLINE# #INDENT# '\n        Fetches content from a URL.\n\n        Use like this:\n\n            try:\n                with b2_http.get_content(url, headers) as response:\n                    for byte_data in response.iter_content(chunk_size=1024):\n                        ...\n            except B2Error as e:\n                ...\n\n        The response object is only guarantee to have:\n            - headers\n            - iter_content()\n\n        :param url: URL to call\n        :param headers: Headers to send\n        :return: Context manager that returns an object that supports iter_content()\n        ' #NEWLINE# headers = dict ( headers ) #NEWLINE# headers [ 'User-Agent' ] = USER_AGENT #NEWLINE# def do_get( ) : #NEWLINE# #INDENT# return self . requests . get ( url , headers = headers , stream = True ) #NEWLINE# #UNINDENT# response = _translate_and_retry ( do_get , try_count , None ) #NEWLINE# return ResponseContextManager ( response )