#NEWLINE# def find_first_response( urls ) : #NEWLINE# #INDENT# ' Decode the first successfully fetched URL, from UTF-8 encoding to\n    Python unicode.\n    ' #NEWLINE# text = '' #NEWLINE# for url in text : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# session = requests . Session ( ) #NEWLINE# session . mount ( 'file://' , FileAdapter ( ) ) #NEWLINE# text = session . get ( url ) . text #NEWLINE# #UNINDENT# except requests . exceptions . RequestException as ree : #NEWLINE# #INDENT# LOG . error ( ( ( ( ( 'Exception reading Public Suffix List url ' + url ) + ' - ' ) + str ( ree ) ) + '.' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return _decode_utf8 ( text ) #NEWLINE# #UNINDENT# #UNINDENT# LOG . error ( 'No Public Suffix List found. Consider using a mirror or constructing your TLDExtract with `suffix_list_urls=None`.' ) #NEWLINE# return unicode ( '' )