def should_report_error(self, error):
    'Return whether the error should be logged.\n\n    This method is suitable for use as an error filter.\n\n    Args:\n      error: An error._Error object.\n\n    Returns:\n      True iff the error should be included in the log.\n    '
    if ((error.filename != self._filename) or (error.lineno is None)):
        return True
    lineno = (error.lineno or sys.maxsize)
    return ((lineno not in self._ignore) and (lineno not in self._disables[_ALL_ERRORS]) and (lineno not in self._disables[error.name]))
Return whether the error should be logged.

This method is suitable for use as an error filter.

Args:
  error: An error._Error object.

Returns:
  True iff the error should be included in the log.
def should_report_error(self, error):
    'Return whether the error should be logged.\n\n    This method is suitable for use as an error filter.\n\n    Args:\n      error: An error._Error object.\n\n    Returns:\n      True iff the error should be included in the log.\n    '
    if ((error.filename != self._filename) or (error.lineno is None)):
        return True
    lineno = (error.lineno or sys.maxsize)
    return ((lineno not in self._ignore) and (lineno not in self._disables[_ALL_ERRORS]) and (lineno not in self._disables[error.name]))