parameters: (path, contents)
docstring: Write a configuration file.
docstring_summary: Write a configuration file.
docstring_tokens: Write a configuration file .
function: def write_config_file(path, contents):
    """ Write a configuration file. """
    msg('Writing file: %s' % path)
    if not options.dryrun:
      fp = open(path, 'w')
      fp.write("{\n")
      for key in sorted(contents.keys()):
        fp.write("  '%s': '%s',\n" % (key, contents[key]))
      fp.write("}\n")
      fp.close()
function_tokens: def write_config_file ( path , contents ) : msg ( 'Writing file: %s' % path ) if not options . dryrun : fp = open ( path , 'w' ) fp . write ( "{\n" ) for key in sorted ( contents . keys ( ) ) : fp . write ( "  '%s': '%s',\n" % ( key , contents [ key ] ) ) fp . write ( "}\n" ) fp . close ( )