parameters: (self)
docstring: Write the file list in 'self.filelist' (presumably as filled in
          by 'add_defaults()' and 'read_template()') to the manifest file
          named by 'self.manifest'.
docstring_summary: Write the file list in 'self.filelist' (presumably as filled in
          by 'add_defaults()' and 'read_template()') to the manifest file
          named by 'self.manifest'.
docstring_tokens: Write the file list in self . filelist ( presumably as filled in by add_defaults () and read_template () ) to the manifest file named by self . manifest .
function: def write_manifest(self):
          """Write the file list in 'self.filelist' (presumably as filled in
          by 'add_defaults()' and 'read_template()') to the manifest file
          named by 'self.manifest'.
          """
          if os.path.isfile(self.manifest):
              fp = open(self.manifest)
              try:
                  first_line = fp.readline()
              finally:
                  fp.close()
  
              if first_line != '# file GENERATED by distutils, do NOT edit\n':
                  log.info("not writing to manually maintained "
                           "manifest file '%s'" % self.manifest)
                  return
  
          content = self.filelist.files[:]
          content.insert(0, '# file GENERATED by distutils, do NOT edit')
          self.execute(file_util.write_file, (self.manifest, content),
                       "writing manifest file '%s'" % self.manifest)
function_tokens: def write_manifest ( self ) : if os . path . isfile ( self . manifest ) : fp = open ( self . manifest ) try : first_line = fp . readline ( ) finally : fp . close ( ) if first_line != '# file GENERATED by distutils, do NOT edit\n' : log . info ( "not writing to manually maintained " "manifest file '%s'" % self . manifest ) return content = self . filelist . files [ : ] content . insert ( 0 , '# file GENERATED by distutils, do NOT edit' ) self . execute ( file_util . write_file , ( self . manifest , content ) , "writing manifest file '%s'" % self . manifest )