                      continue
                  print(output.strip(), file=sys.stderr)
          logger.debug("Terminated stderr reader")
  
      def thread_stdout(self):
          """ Put the subprocess stdout so that it can be read without
          blocking """
          logger.debug("Threading stdout")
          thread = Thread(target=self.read_stdout)
          thread.daemon = True
          thread.start()
          logger.debug("Threaded stdout")
 
</s> remove         thread = Thread(target=self.read_stdout)
 </s> add         thread = Thread(target=self._read_stdout) </s> remove     def thread_stderr(self):
        """ Put the subprocess stderr so that it can be read without
        blocking """
 </s> add     def _thread_stderr(self) -> None:
        """ Put the subprocess stderr so that it can be read without blocking """ </s> remove         thread = Thread(target=self.read_stderr)
 </s> add         thread = Thread(target=self._read_stderr) </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     def read_stderr(self):
 </s> add     def _read_stderr(self) -> None:
    def _thread_stdout(self) -> None:
        """ Put the subprocess stdout so that it can be read without blocking """
                      continue
                  print(output.strip(), file=sys.stderr)
          logger.debug("Terminated stderr reader")
  
    def _thread_stdout(self) -> None:
        """ Put the subprocess stdout so that it can be read without blocking """
    def _thread_stdout(self) -> None:
        """ Put the subprocess stdout so that it can be read without blocking """
    def _thread_stdout(self) -> None:
        """ Put the subprocess stdout so that it can be read without blocking """
          logger.debug("Threading stdout")
          thread = Thread(target=self.read_stdout)
          thread.daemon = True
          thread.start()
          logger.debug("Threaded stdout")
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