#NEWLINE# def _cookies_for_request( self , request ) : #NEWLINE# #INDENT# session_cookies = CookieJar . _cookies_for_request ( self , request ) #NEWLINE# def get_cookies( cur ) : #NEWLINE# #INDENT# query = cur . execute ( 'SELECT host from moz_cookies' ) #NEWLINE# domains = [ row [ 0 ] for row in query . fetchmany ( ) ] #NEWLINE# cookies = [ ] #NEWLINE# for domain in domains : #NEWLINE# #INDENT# cookies += self . _persistent_cookies_for_domain ( domain , request , cur ) #NEWLINE# #UNINDENT# return cookies #NEWLINE# #UNINDENT# persistent_coookies = self . _transaction ( get_cookies ) #NEWLINE# return ( session_cookies + persistent_coookies )