def _process_stderr_from_script(self, stderr, step_num=0):
        """Handle stderr a line at time:

        * for counter lines, store counters
        * for status message, log the status change
        * for all other lines, log an error, and yield the lines
        """
        for line in stderr:
            # just pass one line at a time to parse_mr_job_stderr(),
            # so we can print error and status messages in realtime
            parsed = parse_mr_job_stderr(
                [line], counters=self._counters[step_num])

            # in practice there's only going to be at most one line in
            # one of these lists, but the code is cleaner this way
            for status in parsed['statuses']:
                log.info('Status: %s' % status)

            for line in parsed['other']:
                log.debug('STDERR: %s' % line.rstrip('\r\n'))
                yield line
dataset/ETHPy150Open Yelp/mrjob/mrjob/local.py/LocalMRJobRunner._process_stderr_from_script/original