parameters: (self, input_stream, changelog_format)
docstring: Create a changelog object.
  
          Populate the changelog object from the content of the file
          input_stream.
docstring_summary: Create a changelog object.
docstring_tokens: Create a changelog object .
function: def __init__(self, input_stream, changelog_format):
          """Create a changelog object.
  
          Populate the changelog object from the content of the file
          input_stream.
          """
          self.format = changelog_format
          whole_file = input_stream.read()
          (self.header,
           self.top_version_title, top_version_body,
           self.trailer) = self.format.extract_top_version(whole_file)
          # Split the top version section into categories.
          self.categories = OrderedDict()
          for category in STANDARD_CATEGORIES:
              self.categories[category] = b''
          offset = (self.header + self.top_version_title).count(b'\n') + 1
          self.add_categories_from_text(input_stream.name, offset,
                                        top_version_body, True)
function_tokens: def __init__ ( self , input_stream , changelog_format ) : self . format = changelog_format whole_file = input_stream . read ( ) ( self . header , self . top_version_title , top_version_body , self . trailer ) = self . format . extract_top_version ( whole_file ) # Split the top version section into categories. self . categories = OrderedDict ( ) for category in STANDARD_CATEGORIES : self . categories [ category ] = b'' offset = ( self . header + self . top_version_title ) . count ( b'\n' ) + 1 self . add_categories_from_text ( input_stream . name , offset , top_version_body , True )