#NEWLINE# def _body_inferred_encoding( self ) : #NEWLINE# #INDENT# if ( self . _cached_benc is None ) : #NEWLINE# #INDENT# content_type = to_native_str ( self . headers . get ( b'Content-Type' , b'' ) ) #NEWLINE# ( benc , ubody ) = html_to_unicode ( content_type , self . body , auto_detect_fun = self . _auto_detect_fun , default_encoding = self . _DEFAULT_ENCODING ) #NEWLINE# self . _cached_benc = benc #NEWLINE# self . _cached_ubody = ubody #NEWLINE# #UNINDENT# return self . _cached_benc