parameters: (path, data)
docstring: Write a file.
docstring_summary: Write a file.
docstring_tokens: Write a file .
function: def write_file(path, data):
    """ Write a file. """
    msg('Writing %s' % path)
    if not options.dryrun:
      with open(path, 'w', encoding='utf-8') as fp:
        write_fp(fp, data)
function_tokens: def write_file ( path , data ) : msg ( 'Writing %s' % path ) if not options . dryrun : with open ( path , 'w' , encoding = 'utf-8' ) as fp : write_fp ( fp , data )