      def capture_loss(self, string):
          """ Capture loss values from stdout """
          logger.trace("Capturing loss")
          if not str.startswith(string, "["):
              logger.trace("Not loss message. Returning False")
              return False
  
          loss = self.consoleregex["loss"].findall(string)
          if len(loss) != 2 or not all(len(itm) == 3 for itm in loss):
              logger.trace("Not loss message. Returning False")
 
</s> remove         loss = self.consoleregex["loss"].findall(string)
 </s> add         loss = self._consoleregex["loss"].findall(string) </s> remove             logger.trace("Not loss message. Returning False")
 </s> add             logger.trace("Not loss message. Returning False")  # type:ignore[attr-defined] </s> remove     def capture_loss(self, string):
        """ Capture loss values from stdout """
        logger.trace("Capturing loss")
 </s> add     def _capture_loss(self, string: str) -> bool:
        """ Capture loss values from stdout

        Parameters
        ----------
        string: str
            An output line read from stdout

        Returns
        -------
        bool
            ``True`` if a loss line was captured from stdout, otherwise ``False``
        """
        logger.trace("Capturing loss")  # type:ignore[attr-defined] </s> remove             logger.trace("Error creating loss message. Returning False")
 </s> add             logger.trace(  # type:ignore[attr-defined]
                "Error creating loss message. Returning False") </s> remove             logger.trace("Not ffmpeg message. Returning False")
 </s> add             logger.trace("Not ffmpeg message. Returning False")  # type:ignore[attr-defined]
            logger.trace("Not loss message. Returning False")  # type:ignore[attr-defined]
      def capture_loss(self, string):
          """ Capture loss values from stdout """
          logger.trace("Capturing loss")
          if not str.startswith(string, "["):
            logger.trace("Not loss message. Returning False")  # type:ignore[attr-defined]
              return False
  
          loss = self.consoleregex["loss"].findall(string)
          if len(loss) != 2 or not all(len(itm) == 3 for itm in loss):
              logger.trace("Not loss message. Returning False")
keep keep keep keep replace keep keep keep keep keep
 bugfix: GUI force stdout/stderr reading to utf-8 
lib/gui/wrapper.py