          thread.daemon = True
          thread.start()
          logger.debug("Threaded stderr")
  
      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)
 
</s> remove             logger.trace("Not loss message. Returning False")
 </s> add             logger.trace("Not loss message. Returning False")  # type:ignore[attr-defined] </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         thread = Thread(target=self.read_stderr)
 </s> add         thread = Thread(target=self._read_stderr) </s> remove     def capture_ffmpeg(self, string):
        """ Capture tqdm output for progress bar """
        logger.trace("Capturing ffmpeg")
        ffmpeg = self.consoleregex["ffmpeg"].findall(string)
 </s> add     def _capture_ffmpeg(self, string: str) -> bool:
        """ Capture ffmpeg output for progress bar

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

        Returns
        -------
        bool
            ``True`` if an ffmpeg line was captured from stdout, otherwise ``False``
        """
        logger.trace("Capturing ffmpeg")  # type:ignore[attr-defined]
        ffmpeg = self._consoleregex["ffmpeg"].findall(string)
    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]
          thread.daemon = True
          thread.start()
          logger.debug("Threaded stderr")
  
    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]
    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]
    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]
          if not str.startswith(string, "["):
              logger.trace("Not loss message. Returning False")
              return False
  
          loss = self.consoleregex["loss"].findall(string)
keep keep keep keep replace replace replace keep keep keep keep keep
 bugfix: GUI force stdout/stderr reading to utf-8 
lib/gui/wrapper.py