#NEWLINE# def _is_lang_change( self , request ) : #NEWLINE# #INDENT# "Return True if the lang param is present and URL isn't exempt." #NEWLINE# if ( 'lang' not in request . GET ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return ( not any ( ( request . path . endswith ( url ) for url in self . exempt_urls ) ) )