                                         errors="replace").strip().replace("\n", " - "))
              return None
          return stdout.decode(locale.getpreferredencoding(), errors="replace")
  
      @staticmethod
      def _filter_branches(stdout):
          """ Filter the branches, remove duplicates and the current branch and return a sorted
          list.
  
          Parameters
          ----------
 
</s> remove         branches = sorted(list(branches), key=str.casefold)
        logger.debug("Final branches: %s", branches)
        return branches
 </s> add         retval = sorted(list(branches), key=str.casefold)
        logger.debug("Final branches: %s", retval)
        return retval </s> remove     @staticmethod
    def _switch_branch(branch):
 </s> add     @classmethod
    def _switch_branch(cls, branch: str) -> None: </s> remove                          stdout.decode(locale.getdefaultlocale(),
 </s> add                          stdout.decode(T.cast(str, locale.getdefaultlocale()), </s> remove         list
 </s> add         list[str] </s> remove                 command=lambda b=branch: self._switch_branch(b))
 </s> add                 command=lambda b=branch: self._switch_branch(b))  # type:ignore
    @classmethod
    def _filter_branches(cls, stdout: str) -> T.List[str]:
                                         errors="replace").strip().replace("\n", " - "))
              return None
          return stdout.decode(locale.getpreferredencoding(), errors="replace")
  
    @classmethod
    def _filter_branches(cls, stdout: str) -> T.List[str]:
    @classmethod
    def _filter_branches(cls, stdout: str) -> T.List[str]:
          """ Filter the branches, remove duplicates and the current branch and return a sorted
          list.
  
          Parameters
          ----------
keep keep keep keep replace replace keep keep keep keep keep
 locales: Add GUI menu translations 
lib/gui/menu.py