def _interpret_emr_step_stderr(fs, matches):
 for match in matches:
  path = match['path']
  error = _parse_task_stderr(_cat_log(fs, path))
  if error:
   error['path'] = path
   return dict(errors=[dict(task_error=error)])
 return {}

def _interpret_emr_step_stderr ( fs , matches ) : for match in matches : path = match [ 'path' ] error = _parse_task_stderr ( _cat_log ( fs , path ) ) if error : error [ 'path' ] = path return dict ( errors = [ dict ( task_error = error ) ] ) return { }
extract information from step stderr (see :py:func:~mrjob .