#NEWLINE# def read_headers( self ) : #NEWLINE# #INDENT# head_data = self . fh . read ( ( 1024 * 10 ) ) #NEWLINE# head_data = head_data [ : head_data . find ( six . b ( '<' ) ) ] #NEWLINE# for line in re . split ( six . b ( '\r?\n?' ) , line ) : #NEWLINE# #INDENT# if ( line . strip ( ) == six . b ( '' ) ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# ( header , value ) = line . split ( six . b ( ':' ) ) #NEWLINE# ( header , value ) = ( header . strip ( ) . upper ( ) , value . strip ( ) ) #NEWLINE# self . headers [ header ] = value