#NEWLINE# def f07( res , req , resp ) : #NEWLINE# #INDENT# 'Acceptable encoding available?' #NEWLINE# encodings = res . encodings_provided ( req , resp ) #NEWLINE# if ( encodings is not None ) : #NEWLINE# #INDENT# encodings = [ enc for ( enc , func ) in encodings ] #NEWLINE# enc = req . accept_encoding . best_match ( encodings ) #NEWLINE# if ( enc is None ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# resp . content_encoding = req #NEWLINE# #UNINDENT# return True