                  hrs = f"{hrs:02d}"
              mins = f"{(int(elapsed_time % 3600) // 60):02d}"
              secs = f"{(int(elapsed_time % 3600) % 60):02d}"
          except ZeroDivisionError:
              hrs = "00"
              mins = "00"
              secs = "00"
          return f"{hrs}:{mins}:{secs}"
  
      def capture_tqdm(self, string):
          """ Capture tqdm output for progress bar """
          logger.trace("Capturing tqdm")
 
</s> remove             hrs = int(elapsed_time // 3600)
            if hrs < 10:
                hrs = f"{hrs:02d}"
 </s> add             i_hrs = int(elapsed_time // 3600)
            hrs = f"{i_hrs:02d}" if i_hrs < 10 else str(i_hrs) </s> remove         elapsed_time = now - self.train_stats["timestamp"]
 </s> add         timestamp = self._train_stats["timestamp"]
        assert isinstance(timestamp, float)
        elapsed_time = now - timestamp </s> remove     def capture_tqdm(self, string):
        """ Capture tqdm output for progress bar """
        logger.trace("Capturing tqdm")
        tqdm = self.consoleregex["tqdm"].match(string)
        if not tqdm:
 </s> add     def _capture_tqdm(self, string: str) -> bool:
        """ Capture tqdm output for progress bar

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

        Returns
        -------
        bool
            ``True`` if a tqdm line was captured from stdout, otherwise ``False``
        """
        logger.trace("Capturing tqdm")  # type:ignore[attr-defined]
        mtqdm = self._consoleregex["tqdm"].match(string)
        if not mtqdm: </s> remove         self.statusbar.progress_update(msg, position, True)
        logger.trace("Succesfully captured tqdm message: %s", msg)
 </s> add         self._statusbar.progress_update(msg, position, True)
        logger.trace("Succesfully captured tqdm message: %s", msg)  # type:ignore[attr-defined] </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)
            hrs = mins = secs = "00"
                  hrs = f"{hrs:02d}"
              mins = f"{(int(elapsed_time % 3600) // 60):02d}"
              secs = f"{(int(elapsed_time % 3600) % 60):02d}"
          except ZeroDivisionError:
            hrs = mins = secs = "00"
            hrs = mins = secs = "00"
            hrs = mins = secs = "00"
          return f"{hrs}:{mins}:{secs}"
  
      def capture_tqdm(self, string):
          """ Capture tqdm output for progress bar """
          logger.trace("Capturing tqdm")
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