def _extract_errors_and_warnings(self, a_text):
        """Extract errors and warnings message from `a_text' and create
        a liste of dictionnary of errors `_error_list' and warning
        `_warning_list'"""
        self._error_list = []
        self._warning_list = []
        for l_item in self._error_warning_regex["separator"].findall(a_text):
            if "Error code:" in l_item:
                self._manage_an_error_or_warning(l_item, self._error_list,
                                                 "error")
            if "Warning code:" in l_item:
                self._manage_an_error_or_warning(l_item, self._warning_list,
                                                 "warning")
            if "Syntax error" in l_item:
                self._manage_syntax_error(l_item, self._error_list)
dataset/ETHPy150Open tioui/Vim_Eiffel_IDE/pyplugin/eiffel_project.py/project._extract_errors_and_warnings/original