def Emit(self, line_no, line):
    if self._line_errors or self._line_warns:
      spacer = ' ' * len('%d' % line_no)
      line_error_fmt = 'e: %s  %%s' % spacer
      line_warn_fmt = 'w: %s  %%s' % spacer
      if self._line_errors:
        print('E: %d: %s' % (line_no, line))
      else:
        print('W: %d: %s' % (line_no, line))
      for line_error in self._line_errors:
        print(line_error_fmt % line_error)
      for line_warn in self._line_warns:
        print(line_warn_fmt % line_warn)
      self._line_errors = []
      self._line_warns = []
Print queued warnings and errors.
dataset/ETHPy150Open lyda/chkcrontab/chkcrontab_lib.py/LogCounter.Emit