code: def print_error(msg, color=True):
      
      if color and is_posix():
          safe_print(u"%s[ERRO] %s%s" % (ANSI_ERROR, msg, ANSI_END))
      else:
          safe_print(u"[ERRO] %s" % (msg))
docs: Print an error message.
  
      :param string msg: the message
      :param bool color: if ``True``, print with POSIX color