def ParseSuccessMsg(msg):
 parsed = re.match(kSuccessMsgRe, msg)
 if (not parsed):
  return None
 try:
  (user, device, op, class_name, method_name) = parsed.groups()
  return (user, device, op, class_name, method_name)
 except Exception as e:
  logging.warning(('RE matched "%s", but extracted wrong numbers of items: %r' % (msg, e)))
  return None

def ParseSuccessMsg ( msg ) : parsed = re . match ( kSuccessMsgRe , msg ) if ( not parsed ) : return None try : ( user , device , op , class_name , method_name ) = parsed . groups ( ) return ( user , device , op , class_name , method_name ) except Exception as e : logging . warning ( ( 'RE matched "%s", but extracted wrong numbers of items: %r' % ( msg , e ) ) ) return None
attempt to parse the message for a user_op_manager success line and extract user .