def publish(self):
with open( self.file_name, '<STR_LIT:w>') as fh:<EOL><INDENT>for k,v in self.args.iteritems():<EOL><INDENT>buf = StringIO.StringIO()<EOL>buf.write(k)<EOL>self._append_vals(buf,v)<EOL>fh.write(buf.getvalue() + '<STR_LIT:\n>')<EOL>buf.close()<EOL><DEDENT><DEDENT>
Write output file.