def _match_emr_step_log_path(path, log_type, step_id=None):
 m = _EMR_STEP_LOG_PATH_RE.match(path)
 if (not m):
  return None
 if (m.group('log_type') != log_type):
  return None
 if (not ((step_id is None) or (m.group('step_id') == step_id))):
  return None
 return dict(step_id=m.group('step_id'), timestamp=m.group('timestamp'))

def _match_emr_step_log_path ( path , log_type , step_id = None ) : m = _EMR_STEP_LOG_PATH_RE . match ( path ) if ( not m ) : return None if ( m . group ( 'log_type' ) != log_type ) : return None if ( not ( ( step_id is None ) or ( m . group ( 'step_id' ) == step_id ) ) ) : return None return dict ( step_id = m . group ( 'step_id' ) , timestamp = m . group ( 'timestamp' ) )
helper for :py:func:_match_emr_step_syslog_path and :py:func:_match_emr_step_stderr_path .