def __init__(self, lines, headers=None):
        """ Initialize the class

        The method setups the class attributes and starts parsing the
        docstring to find and refactor the sections.

        Arguments
        ---------
        lines : list of strings
            The docstring to refactor

        headers : dict
            The sections for which the class has custom refactor methods.
            Each entry in the dictionary should have as key the name of
            the section in the form that it appears in the docstrings.
            The value should be the postfix of the method, in the
            subclasses, that is responsible for refactoring (e.g.
            {'Methods': 'method'}).

        """
        try:
            self._docstring = lines.splitlines()
        except __HOLE__:
            self._docstring = lines
        self.headers = {} if headers is None else headers
        self.bookmarks = []
dataset/ETHPy150Open enthought/traits/docs/source/_extensions/refactordoc/base_doc.py/BaseDoc.__init__