#NEWLINE# def d05( res , req , resp ) : #NEWLINE# #INDENT# 'Accept-Language available?' #NEWLINE# langs = res . languages_provided ( req , resp ) #NEWLINE# if ( langs is not None ) : #NEWLINE# #INDENT# lang = req . accept_language . best_match ( langs ) #NEWLINE# if ( lang is None ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# resp . content_language = lang #NEWLINE# #UNINDENT# return True