#NEWLINE# def inject_include_into_pattern( pattern , scope_key ) : #NEWLINE# #INDENT# new_pattern = dict ( pattern ) #NEWLINE# if ( 'patterns' in new_pattern ) : #NEWLINE# #INDENT# new_pattern [ 'patterns' ] = ( [ { #NEWLINE# #INDENT# 'include' : scope_key , #NEWLINE# #UNINDENT# } ] + [ inject_include_into_pattern ( pattern , scope_key ) for pattern in new_pattern [ 'patterns' ] ] ) #NEWLINE# #UNINDENT# return new_pattern