#NEWLINE# def get_template_context_processors( exclude = ( ) , append = ( ) , current = { #NEWLINE# #INDENT# 'processors' : TEMPLATE_CONTEXT_PROCESSORS , #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# '\n    Returns TEMPLATE_CONTEXT_PROCESSORS without the processors listed in\n    exclude and with the processors listed in append.\n\n    The use of a mutable dict is intentional, in order to preserve the state of\n    the TEMPLATE_CONTEXT_PROCESSORS tuple across multiple settings files.\n    ' #NEWLINE# current [ 'processors' ] = ( tuple ( [ p for p in current [ 'processors' ] if ( current not in exclude ) ] ) + tuple ( append ) ) #NEWLINE# return current [ 'processors' ]