def template_shebang(template, renderers, default, blacklist, whitelist, input_data):
 render_pipe = []
 line = ''
 if (template == ':string:'):
  line = input_data.split()[0]
 else:
  with salt.utils.fopen(template, 'r') as ifile:
   line = ifile.readline()
 if (line.startswith('#!') and (not line.startswith('#!/'))):
  render_pipe = check_render_pipe_str(line.strip()[2:], renderers, blacklist, whitelist)
 if (not render_pipe):
  render_pipe = check_render_pipe_str(default, renderers, blacklist, whitelist)
 return render_pipe

def template_shebang ( template , renderers , default , blacklist , whitelist , input_data ) : render_pipe = [ ] line = '' if ( template == ':string:' ) : line = input_data . split ( ) [ 0 ] else : with salt . utils . fopen ( template , 'r' ) as ifile : line = ifile . readline ( ) if ( line . startswith ( '#!' ) and ( not line . startswith ( '#!/' ) ) ) : render_pipe = check_render_pipe_str ( line . strip ( ) [ 2 : ] , renderers , blacklist , whitelist ) if ( not render_pipe ) : render_pipe = check_render_pipe_str ( default , renderers , blacklist , whitelist ) return render_pipe
check the template shebang line and return the list of renderers specified in the pipe .