parameters: (name, text, opts)
docstring: Write the output file for module/package <name>.
docstring_summary: Write the output file for module/package <name>.
docstring_tokens: Write the output file for module / package <name > .
function: def write_file(name, text, opts):
      """Write the output file for module/package <name>."""
      if opts.dryrun:
          return
      fname = os.path.join(opts.destdir, "%s.%s" % (name, opts.suffix))
      if not opts.force and os.path.isfile(fname):
          print 'File %s already exists, skipping.' % fname
      else:
          print 'Creating file %s.' % fname
          with open(fname, 'w') as f:
              f.write(text)
function_tokens: def write_file ( name , text , opts ) : if opts . dryrun : return fname = os . path . join ( opts . destdir , "%s.%s" % ( name , opts . suffix ) ) if not opts . force and os . path . isfile ( fname ) : print 'File %s already exists, skipping.' % fname else : print 'Creating file %s.' % fname with open ( fname , 'w' ) as f : f . write ( text )