parameters: (component)
return_statement: return ["%s/ChangeLog" % (component)]
docstring: Creates a changelog entry for the supplied component that includes
      the version number being released
docstring_summary: Creates a changelog entry for the supplied component that includes
      the version number being released
docstring_tokens: Creates a changelog entry for the supplied component that includes the version number being released
function: def create_changelog (component):
      """ Creates a changelog entry for the supplied component that includes
      the version number being released"""
      vprint ("Creating ChangeLog entry for " + component)
  
      global comp_versions, opts
  
      # generate our changelog entry
      changelog_entry = """%s  %s  <%s>
  
  \t* %s version %s released.
  
  """ % (release_date, signature, mailid,
         component,
         comp_versions[component + "_version"])
  
      vprint ("Changelog Entry for " + component + "\n" + changelog_entry)
  
      with open ("%s/ChangeLog" % (component), 'r+') as changelog:
          changelog_entry += changelog.read ()
  
          if opts.take_action:
              changelog.seek (0)
              changelog.truncate (0)
              changelog.write (changelog_entry)
  
      return ["%s/ChangeLog" % (component)]
function_tokens: def create_changelog ( component ) : vprint ( "Creating ChangeLog entry for " + component ) global comp_versions , opts # generate our changelog entry changelog_entry = """%s  %s  <%s>
  
  \t* %s version %s released.
  
  """ % ( release_date , signature , mailid , component , comp_versions [ component + "_version" ] ) vprint ( "Changelog Entry for " + component + "\n" + changelog_entry ) with open ( "%s/ChangeLog" % ( component ) , 'r+' ) as changelog : changelog_entry += changelog . read ( ) if opts . take_action : changelog . seek ( 0 ) changelog . truncate ( 0 ) changelog . write ( changelog_entry ) return [ "%s/ChangeLog" % ( component ) ]