@sync_performer
def perform_put(dispatcher, intent):
 def create_put_command(content, path):
  content = content.replace('\\', '\\\\').replace('%', '%%')
  return ('printf -- %s > %s' % (shell_quote(content), shell_quote(path)))
 return Effect(Run(command=create_put_command(intent.content, intent.path), log_command_filter=(lambda _: create_put_command(intent.log_content_filter(intent.content), intent.path))))

@ sync_performer def perform_put ( dispatcher , intent ) : def create_put_command ( content , path ) : content = content . replace ( '\\' , '\\\\' ) . replace ( '%' , '%%' ) return ( 'printf -- %s > %s' % ( shell_quote ( content ) , shell_quote ( path ) ) ) return Effect ( Run ( command = create_put_command ( intent . content , intent . path ) , log_command_filter = ( lambda _ : create_put_command ( intent . log_content_filter ( intent . content ) , intent . path ) ) ) )
default implementation of put .