137 @param code message code to check for |
137 @param code message code to check for |
138 @type str |
138 @type str |
139 @return flag indicating to ignore the given code |
139 @return flag indicating to ignore the given code |
140 @rtype bool |
140 @rtype bool |
141 """ |
141 """ |
142 return ( |
142 return code in self.__ignore or ( |
143 code in self.__ignore |
143 code.startswith(self.__ignore) and not code.startswith(self.__select) |
144 or (code.startswith(self.__ignore) and not code.startswith(self.__select)) |
|
145 ) |
144 ) |
146 |
145 |
147 def __error(self, node, code): |
146 def __error(self, node, code): |
148 """ |
147 """ |
149 Private method to build the error information. |
148 Private method to build the error information. |